1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-21 00:41:34 +02:00
invoiceninja/app/Models/BankSubaccount.php

33 lines
561 B
PHP
Raw Normal View History

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