firefly-iii/app/Models/AccountType.php
2016-01-01 21:49:27 +01:00

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'];
}
}