Added method for triggers to check whether they match all transactions

This commit is contained in:
Robert Horlings
2016-02-17 13:02:27 +01:00
parent 17dad27610
commit 7c8c82edd7
18 changed files with 157 additions and 0 deletions

View File

@@ -62,4 +62,14 @@ class FromAccountContains 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 === "";
}
}