2016-01-11 14:28:29 -06:00
|
|
|
<?php
|
2016-02-05 05:08:25 -06:00
|
|
|
declare(strict_types = 1);
|
2016-01-11 14:28:29 -06:00
|
|
|
/**
|
|
|
|
* RuleTrigger.php
|
2016-04-01 09:44:46 -05:00
|
|
|
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
2016-01-11 14:28:29 -06:00
|
|
|
*
|
|
|
|
* This software may be modified and distributed under the terms
|
|
|
|
* of the MIT license. See the LICENSE file for details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace FireflyIII\Models;
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
|
|
|
/**
|
2016-01-12 13:36:47 -06:00
|
|
|
* FireflyIII\Models\RuleTrigger
|
2016-01-11 14:28:29 -06:00
|
|
|
*
|
2016-01-15 16:12:52 -06:00
|
|
|
* @property integer $id
|
|
|
|
* @property \Carbon\Carbon $created_at
|
|
|
|
* @property \Carbon\Carbon $updated_at
|
|
|
|
* @property integer $rule_id
|
|
|
|
* @property integer $order
|
|
|
|
* @property string $title
|
|
|
|
* @property string $trigger_type
|
|
|
|
* @property string $trigger_value
|
|
|
|
* @property boolean $active
|
|
|
|
* @property boolean $stop_processing
|
2016-01-11 14:42:51 -06:00
|
|
|
* @property-read \FireflyIII\Models\Rule $rule
|
2016-03-12 00:36:23 -06:00
|
|
|
* @method static \Illuminate\Database\Query\Builder|\FireflyIII\Models\RuleTrigger whereId($value)
|
|
|
|
* @method static \Illuminate\Database\Query\Builder|\FireflyIII\Models\RuleTrigger whereCreatedAt($value)
|
|
|
|
* @method static \Illuminate\Database\Query\Builder|\FireflyIII\Models\RuleTrigger whereUpdatedAt($value)
|
|
|
|
* @method static \Illuminate\Database\Query\Builder|\FireflyIII\Models\RuleTrigger whereRuleId($value)
|
|
|
|
* @method static \Illuminate\Database\Query\Builder|\FireflyIII\Models\RuleTrigger whereOrder($value)
|
|
|
|
* @method static \Illuminate\Database\Query\Builder|\FireflyIII\Models\RuleTrigger whereActive($value)
|
|
|
|
* @method static \Illuminate\Database\Query\Builder|\FireflyIII\Models\RuleTrigger whereStopProcessing($value)
|
|
|
|
* @method static \Illuminate\Database\Query\Builder|\FireflyIII\Models\RuleTrigger whereTriggerType($value)
|
|
|
|
* @method static \Illuminate\Database\Query\Builder|\FireflyIII\Models\RuleTrigger whereTriggerValue($value)
|
|
|
|
* @mixin \Eloquent
|
2016-01-11 14:28:29 -06:00
|
|
|
*/
|
|
|
|
class RuleTrigger extends Model
|
|
|
|
{
|
2016-02-17 06:03:02 -06:00
|
|
|
/**
|
2016-02-17 08:46:58 -06:00
|
|
|
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
2016-02-17 06:03:02 -06:00
|
|
|
*/
|
2016-02-17 08:46:58 -06:00
|
|
|
public function rule()
|
|
|
|
{
|
|
|
|
return $this->belongsTo('FireflyIII\Models\Rule');
|
2016-02-17 06:03:02 -06:00
|
|
|
}
|
2016-01-11 14:28:29 -06:00
|
|
|
}
|