firefly-iii/app/Models/Component.php

32 lines
645 B
PHP
Raw Normal View History

2015-02-27 09:48:33 -06:00
<?php namespace FireflyIII\Models;
2016-01-01 14:49:27 -06:00
use Carbon\Carbon;
2015-02-27 09:48:33 -06:00
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
/**
2016-01-01 14:49:27 -06:00
* FireflyIII\Models\Component
2015-02-27 09:48:33 -06:00
*
2016-01-01 14:49:27 -06:00
* @property integer $id
* @property Carbon $created_at
* @property Carbon $updated_at
* @property Carbon $deleted_at
* @property string $name
* @property integer $user_id
* @property string $class
2015-02-27 09:48:33 -06:00
*/
class Component extends Model
{
use SoftDeletes;
2015-03-29 14:27:51 -05:00
protected $fillable = ['user_id', 'name', 'class'];
2015-03-21 02:51:34 -05:00
2015-02-27 09:48:33 -06:00
/**
* @return array
*/
public function getDates()
{
return ['created_at', 'updated_at', 'deleted_at'];
}
}