2020-06-07 11:31:01 +02:00
|
|
|
<?php
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
namespace FireflyIII\Repositories\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;
|
|
|
|
|
|
2020-06-07 16:38:15 +02:00
|
|
|
/**
|
|
|
|
|
* Delete empty ones.
|
|
|
|
|
*/
|
|
|
|
|
public function deleteEmpty(): void;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Sort
|
|
|
|
|
*/
|
|
|
|
|
public function sort(): void;
|
|
|
|
|
|
2020-06-07 11:31:01 +02:00
|
|
|
}
|