1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00
invoiceninja/app/Models/TicketTemplate.php
2019-01-30 22:25:07 +11:00

52 lines
719 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\SoftDeletes;
class TicketTemplate extends EntityModel
{
use SoftDeletes;
/**
* @var array
*/
protected $dates = ['deleted_at'];
/**
* @var array
*/
protected $fillable = [
'name',
'description',
];
/**
* @return mixed
*/
public function getEntityType()
{
return ENTITY_TICKET_TEMPLATE;
}
/**
* @return mixed
*/
public function account()
{
return $this->belongsTo('App\Models\Account');
}
/**
* @return mixed
*/
public function user()
{
return $this->belongsTo('App\Models\User');
}
}