invoiceninja/app/Models/Subscription.php

51 lines
757 B
PHP
Raw Permalink Normal View History

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