Changed trigger constructor. No longer needs model AND journal, now only model. Wait for it...

This commit is contained in:
James Cole
2016-02-17 19:07:20 +01:00
parent 8024ad123e
commit 12b6791e8b
20 changed files with 347 additions and 332 deletions

View File

@@ -23,10 +23,9 @@ interface TriggerInterface
/**
* TriggerInterface constructor.
*
* @param RuleTrigger $trigger
* @param TransactionJournal $journal
* @param RuleTrigger $trigger
*/
public function __construct(RuleTrigger $trigger, TransactionJournal $journal);
public function __construct(RuleTrigger $trigger);
/**
* A trigger is said to "match anything", or match any given transaction,
@@ -47,7 +46,9 @@ interface TriggerInterface
public static function willMatchEverything($value = null);
/**
* @param TransactionJournal $journal
*
* @return bool
*/
public function triggered();
public function triggered(TransactionJournal $journal);
}