mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Implement first version of the new rule engine.
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
|
||||
namespace FireflyIII\TransactionRules\Engine;
|
||||
|
||||
use FireflyIII\User;
|
||||
use Illuminate\Support\Collection;
|
||||
|
||||
/**
|
||||
@@ -28,6 +29,10 @@ use Illuminate\Support\Collection;
|
||||
*/
|
||||
interface RuleEngineInterface
|
||||
{
|
||||
/**
|
||||
* @param User $user
|
||||
*/
|
||||
public function setUser(User $user): void;
|
||||
/**
|
||||
* Add rules for the engine to execute.
|
||||
*
|
||||
@@ -49,4 +54,9 @@ interface RuleEngineInterface
|
||||
*/
|
||||
public function addOperator(array $operator): void;
|
||||
|
||||
/**
|
||||
* Fire the rule engine.
|
||||
*/
|
||||
public function fire(): void;
|
||||
|
||||
}
|
Reference in New Issue
Block a user