mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-18 15:39:50 +00:00
Various code reshuffelling.
This commit is contained in:
@@ -39,31 +39,6 @@ interface RuleRepositoryInterface
|
||||
*/
|
||||
public function count(): int;
|
||||
|
||||
/**
|
||||
* @param string $query
|
||||
* @param int $limit
|
||||
*
|
||||
* @return Collection
|
||||
*/
|
||||
public function searchRule(string $query, int $limit): Collection;
|
||||
|
||||
/**
|
||||
* Return search query for rule.
|
||||
*
|
||||
* @param Rule $rule
|
||||
* @return string
|
||||
*/
|
||||
public function getSearchQuery(Rule $rule): string;
|
||||
|
||||
/**
|
||||
* @param Rule $rule
|
||||
* @param RuleGroup $ruleGroup
|
||||
* @param int $order
|
||||
*
|
||||
* @return Rule
|
||||
*/
|
||||
public function moveRule(Rule $rule, RuleGroup $ruleGroup, int $order): Rule;
|
||||
|
||||
/**
|
||||
* @param Rule $rule
|
||||
*
|
||||
@@ -92,20 +67,6 @@ interface RuleRepositoryInterface
|
||||
*/
|
||||
public function getAll(): Collection;
|
||||
|
||||
/**
|
||||
* Get all the users rules that trigger on storage.
|
||||
*
|
||||
* @return Collection
|
||||
*/
|
||||
public function getStoreRules(): Collection;
|
||||
|
||||
/**
|
||||
* Get all the users rules that trigger on update.
|
||||
*
|
||||
* @return Collection
|
||||
*/
|
||||
public function getUpdateRules(): Collection;
|
||||
|
||||
/**
|
||||
* @return RuleGroup
|
||||
*/
|
||||
@@ -139,6 +100,29 @@ interface RuleRepositoryInterface
|
||||
*/
|
||||
public function getRuleTriggers(Rule $rule): Collection;
|
||||
|
||||
/**
|
||||
* Return search query for rule.
|
||||
*
|
||||
* @param Rule $rule
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getSearchQuery(Rule $rule): string;
|
||||
|
||||
/**
|
||||
* Get all the users rules that trigger on storage.
|
||||
*
|
||||
* @return Collection
|
||||
*/
|
||||
public function getStoreRules(): Collection;
|
||||
|
||||
/**
|
||||
* Get all the users rules that trigger on update.
|
||||
*
|
||||
* @return Collection
|
||||
*/
|
||||
public function getUpdateRules(): Collection;
|
||||
|
||||
/**
|
||||
* @param Rule $rule
|
||||
*
|
||||
@@ -146,6 +130,15 @@ interface RuleRepositoryInterface
|
||||
*/
|
||||
public function moveDown(Rule $rule): bool;
|
||||
|
||||
/**
|
||||
* @param Rule $rule
|
||||
* @param RuleGroup $ruleGroup
|
||||
* @param int $order
|
||||
*
|
||||
* @return Rule
|
||||
*/
|
||||
public function moveRule(Rule $rule, RuleGroup $ruleGroup, int $order): Rule;
|
||||
|
||||
/**
|
||||
* @param Rule $rule
|
||||
*
|
||||
@@ -176,6 +169,14 @@ interface RuleRepositoryInterface
|
||||
*/
|
||||
public function resetRulesInGroupOrder(RuleGroup $ruleGroup): bool;
|
||||
|
||||
/**
|
||||
* @param string $query
|
||||
* @param int $limit
|
||||
*
|
||||
* @return Collection
|
||||
*/
|
||||
public function searchRule(string $query, int $limit): Collection;
|
||||
|
||||
/**
|
||||
* @param User $user
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user