34 lines
635 B
PHP
34 lines
635 B
PHP
<?php
|
|
|
|
namespace App;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class AccountClass extends Model
|
|
{
|
|
/*
|
|
* Get the IO-type of the account class.
|
|
*
|
|
* @return Illuminate\Database\Eloquent\Relations\BelongsTo
|
|
*/
|
|
public function ioType()
|
|
{
|
|
return $this->belongsTo('App\IOType');
|
|
}
|
|
|
|
/**
|
|
* Get the scope of the account class.
|
|
*
|
|
* @return Illuminate\Database\Eloquent\Relations\BelongsTo
|
|
*/
|
|
public function scope()
|
|
{
|
|
return $this->belongsTo('App\Scope');
|
|
}
|
|
|
|
public function accountTypes()
|
|
{
|
|
return $this->hasMany('App\AccountType');
|
|
}
|
|
}
|