mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-14 02:32:04 -06:00
65 lines
1.3 KiB
PHP
65 lines
1.3 KiB
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
namespace FireflyIII\Repositories\ObjectGroup;
|
|
|
|
use FireflyIII\Models\ObjectGroup;
|
|
use Illuminate\Support\Collection;
|
|
|
|
/**
|
|
* Interface ObjectGroupRepositoryInterface
|
|
*/
|
|
interface ObjectGroupRepositoryInterface
|
|
{
|
|
/**
|
|
* @return Collection
|
|
*/
|
|
public function get(): Collection;
|
|
|
|
/**
|
|
* @param string $query
|
|
*
|
|
* @return Collection
|
|
*/
|
|
public function search(string $query): Collection;
|
|
|
|
/**
|
|
* Delete empty ones.
|
|
*/
|
|
public function deleteEmpty(): void;
|
|
|
|
/**
|
|
* @param ObjectGroup $objectGroup
|
|
*
|
|
* @return Collection
|
|
*/
|
|
public function getPiggyBanks(ObjectGroup $objectGroup): Collection;
|
|
|
|
/**
|
|
* Sort
|
|
*/
|
|
public function sort(): void;
|
|
|
|
/**
|
|
* @param ObjectGroup $objectGroup
|
|
* @param int $index
|
|
*
|
|
* @return ObjectGroup
|
|
*/
|
|
public function setOrder(ObjectGroup $objectGroup, int $index): ObjectGroup;
|
|
|
|
/**
|
|
* @param ObjectGroup $objectGroup
|
|
* @param array $data
|
|
*
|
|
* @return ObjectGroup
|
|
*/
|
|
public function update(ObjectGroup $objectGroup, array $data): ObjectGroup;
|
|
|
|
/**
|
|
* @param ObjectGroup $objectGroup
|
|
*/
|
|
public function destroy(ObjectGroup $objectGroup): void;
|
|
|
|
}
|