Files
pollux/app/AccountType.php
T

29 lines
558 B
PHP

<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class AccountType extends Model
{
/*
* Get the account class of the account type.
*
* @return Illuminate\Database\Eloquent\Relations\BelongsTo
*/
public function accountClass()
{
return $this->belongsTo('App\AccountClass');
}
/*
* Get the IO-type of the account type.
*
* @return Illuminate\Database\Eloquent\Relations\BelongsTo
*/
public function ioType()
{
return $this->accountClass->ioType();
}
}