mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 02:36:28 +00:00 
			
		
		
		
	Removed all constructors from all triggers.
This commit is contained in:
		| @@ -11,7 +11,6 @@ declare(strict_types = 1); | ||||
| namespace FireflyIII\Rules\Triggers; | ||||
|  | ||||
|  | ||||
| use FireflyIII\Models\RuleTrigger; | ||||
| use FireflyIII\Models\TransactionJournal; | ||||
| use Log; | ||||
|  | ||||
| @@ -20,24 +19,9 @@ use Log; | ||||
|  * | ||||
|  * @package FireflyIII\Rules\Triggers | ||||
|  */ | ||||
| class DescriptionContains implements TriggerInterface | ||||
| class DescriptionContains extends AbstractTrigger implements TriggerInterface | ||||
| { | ||||
|  | ||||
|  | ||||
|     /** @var RuleTrigger */ | ||||
|     protected $trigger; | ||||
|  | ||||
|     /** | ||||
|      * TriggerInterface constructor. | ||||
|      * | ||||
|      * @param RuleTrigger $trigger | ||||
|      */ | ||||
|     public function __construct(RuleTrigger $trigger) | ||||
|     { | ||||
|         $this->trigger = $trigger; | ||||
|  | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * A trigger is said to "match anything", or match any given transaction, | ||||
|      * when the trigger value is very vague or has no restrictions. Easy examples | ||||
|   | ||||
		Reference in New Issue
	
	Block a user