mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-06 22:21:42 +00:00
Added method for triggers to check whether they match all transactions
This commit is contained in:
@@ -63,4 +63,13 @@ class DescriptionContains 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