firefly-iii/app/Repositories/RuleGroup/RuleGroupRepositoryInterface.php

77 lines
1.4 KiB
PHP
Raw Normal View History

2016-01-15 04:16:41 -06:00
<?php
namespace FireflyIII\Repositories\RuleGroup;
use FireflyIII\Models\RuleGroup;
use Illuminate\Support\Collection;
2016-01-15 06:13:21 -06:00
/**
* Interface RuleGroupRepositoryInterface
*
* @package FireflyIII\Repositories\RuleGroup
*/
interface RuleGroupRepositoryInterface
2016-01-15 04:16:41 -06:00
{
/**
* @param RuleGroup $ruleGroup
* @param RuleGroup $moveTo
*
* @return bool
*/
2016-01-15 06:13:21 -06:00
public function destroy(RuleGroup $ruleGroup, RuleGroup $moveTo = null);
/**
* @return int
*/
public function getHighestOrderRuleGroup();
/**
* @return Collection
*/
2016-01-15 06:13:21 -06:00
public function get();
/**
* @param RuleGroup $ruleGroup
2016-01-15 06:13:21 -06:00
*
* @return bool
*/
2016-01-15 06:13:21 -06:00
public function moveUp(RuleGroup $ruleGroup);
/**
* @param RuleGroup $ruleGroup
2016-01-15 06:13:21 -06:00
*
* @return bool
*/
2016-01-15 06:13:21 -06:00
public function moveDown(RuleGroup $ruleGroup);
/**
* @return bool
*/
public function resetRuleGroupOrder();
/**
* @param RuleGroup $ruleGroup
*
* @return bool
*/
public function resetRulesInGroupOrder(RuleGroup $ruleGroup);
/**
* @param array $data
*
* @return RuleGroup
*/
2016-01-15 06:13:21 -06:00
public function store(array $data);
/**
* @param RuleGroup $ruleGroup
* @param array $data
*
* @return RuleGroup
*/
2016-01-15 06:13:21 -06:00
public function update(RuleGroup $ruleGroup, array $data);
2016-01-15 04:16:41 -06:00
}