1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-09 20:52:56 +01:00
invoiceninja/app/Models/Subscription.php

51 lines
757 B
PHP
Raw Normal View History

2017-01-30 20:40:43 +01:00
<?php
namespace App\Models;
2015-03-16 22:45:25 +01:00
2015-03-31 11:38:24 +02:00
use Eloquent;
2017-01-30 20:40:43 +01:00
use Illuminate\Database\Eloquent\SoftDeletes;
2015-03-31 11:38:24 +02:00
/**
2017-01-30 20:40:43 +01:00
* Class Subscription.
*/
2017-11-28 08:57:02 +01:00
class Subscription extends EntityModel
2015-03-16 22:45:25 +01:00
{
/**
* @var bool
*/
2015-03-16 22:45:25 +01:00
public $timestamps = true;
2017-11-29 11:44:28 +01:00
2015-03-31 11:38:24 +02:00
use SoftDeletes;
2017-11-28 08:57:02 +01:00
/**
* @var array
*/
2015-03-31 11:38:24 +02:00
protected $dates = ['deleted_at'];
2017-11-28 08:57:02 +01:00
/**
* @var array
*/
protected $fillable = [
'event_id',
'target_url',
2018-01-11 08:58:43 +01:00
'format',
2017-11-28 08:57:02 +01:00
];
2017-11-29 11:44:28 +01:00
/**
* @return mixed
*/
public function getEntityType()
{
return ENTITY_SUBSCRIPTION;
}
2017-11-29 12:12:20 +01:00
/**
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
public function account()
{
return $this->belongsTo('App\Models\Account');
}
2017-11-29 11:44:28 +01:00
2015-03-16 22:45:25 +01:00
}