invoiceninja/app/Models/BankSubaccount.php

34 lines
562 B
PHP
Raw Normal View History

2017-01-30 21:40:43 +02:00
<?php
namespace App\Models;
2017-01-30 18:05:31 +02:00
2016-01-26 22:22:33 +02:00
use Illuminate\Database\Eloquent\SoftDeletes;
/**
2017-01-30 21:40:43 +02:00
* Class BankSubaccount.
*/
2016-01-26 22:22:33 +02:00
class BankSubaccount extends EntityModel
{
use SoftDeletes;
/**
* @var array
*/
2016-01-26 22:22:33 +02:00
protected $dates = ['deleted_at'];
/**
* @return mixed
*/
2016-01-26 22:22:33 +02:00
public function getEntityType()
{
return ENTITY_BANK_SUBACCOUNT;
}
/**
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
2016-01-26 22:22:33 +02:00
public function bank_account()
{
return $this->belongsTo('App\Models\BankAccount');
}
}