Files
firefly-iii/app/Models/RuleTrigger.php

49 lines
1.1 KiB
PHP
Raw Normal View History

2016-01-11 21:28:29 +01:00
<?php
/**
* RuleTrigger.php
2016-04-01 16:44:46 +02:00
* Copyright (C) 2016 thegrumpydictator@gmail.com
2016-01-11 21:28:29 +01:00
*
* This software may be modified and distributed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International License.
*
* See the LICENSE file for details.
2016-01-11 21:28:29 +01:00
*/
declare(strict_types = 1);
2016-01-11 21:28:29 +01:00
namespace FireflyIII\Models;
use Illuminate\Database\Eloquent\Model;
2016-11-18 20:06:08 +01:00
/**
* Class RuleTrigger
*
* @package FireflyIII\Models
*/
2016-01-11 21:28:29 +01:00
class RuleTrigger extends Model
{
2016-12-24 17:36:51 +01:00
/**
* The attributes that should be casted to native types.
*
* @var array
*/
protected $casts
= [
'created_at' => 'date',
'updated_at' => 'date',
'active' => 'boolean',
'order' => 'int',
'stop_processing' => 'boolean',
];
/** @var array */
protected $dates = ['created_at', 'updated_at'];
/**
2016-02-17 15:46:58 +01:00
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
2016-02-17 15:46:58 +01:00
public function rule()
{
return $this->belongsTo('FireflyIII\Models\Rule');
}
2016-01-11 21:28:29 +01:00
}