| 
									
										
										
										
											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
										 |  |  |  * | 
					
						
							| 
									
										
										
										
											2016-10-05 06:52:15 +02: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
										 |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-05-20 12:41:23 +02:00
										 |  |  | declare(strict_types = 1); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-01-11 21:28:29 +01:00
										 |  |  | namespace FireflyIII\Models; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | use Illuminate\Database\Eloquent\Model; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class RuleTrigger extends Model | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
										
										
											2016-02-17 13:03:02 +01:00
										 |  |  |     /** | 
					
						
							| 
									
										
										
										
											2016-02-17 15:46:58 +01:00
										 |  |  |      * @return \Illuminate\Database\Eloquent\Relations\BelongsTo | 
					
						
							| 
									
										
										
										
											2016-02-17 13:03:02 +01:00
										 |  |  |      */ | 
					
						
							| 
									
										
										
										
											2016-02-17 15:46:58 +01:00
										 |  |  |     public function rule() | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         return $this->belongsTo('FireflyIII\Models\Rule'); | 
					
						
							| 
									
										
										
										
											2016-02-17 13:03:02 +01:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2016-01-11 21:28:29 +01:00
										 |  |  | } |