mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-28 09:51:21 -06:00
38 lines
887 B
PHP
38 lines
887 B
PHP
<?php namespace FireflyIII\Models;
|
|
|
|
use Carbon\Carbon;
|
|
use Illuminate\Database\Eloquent\Collection;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* FireflyIII\Models\AccountType
|
|
*
|
|
* @property integer $id
|
|
* @property Carbon $created_at
|
|
* @property Carbon $updated_at
|
|
* @property string $type
|
|
* @property boolean $editable
|
|
* @property-read Collection|Account[] $accounts
|
|
*/
|
|
class AccountType extends Model
|
|
{
|
|
|
|
//
|
|
/**
|
|
* @return \Illuminate\Database\Eloquent\Relations\HasMany
|
|
*/
|
|
public function accounts()
|
|
{
|
|
return $this->hasMany('FireflyIII\Models\Account');
|
|
}
|
|
|
|
/**
|
|
* @return array
|
|
*/
|
|
/** @noinspection PhpMissingParentCallCommonInspection */
|
|
public function getDates()
|
|
{
|
|
return ['created_at', 'updated_at'];
|
|
}
|
|
}
|