mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 10:47:00 +00:00 
			
		
		
		
	Added method for triggers to check whether they match all transactions
This commit is contained in:
		| @@ -72,4 +72,15 @@ class FromAccountEnds implements TriggerInterface | ||||
|         return false; | ||||
|  | ||||
|     } | ||||
|      | ||||
|  | ||||
|     /** | ||||
|      * Checks whether this trigger will match all transactions | ||||
|      * This happens when the trigger_value is empty | ||||
|      * @return bool | ||||
|      */ | ||||
|     public function matchesAnything() { | ||||
|         return $this->trigger->trigger_value === ""; | ||||
|     } | ||||
|          | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user