add ordered element queries
This commit is contained in:
parent
88c8a018ad
commit
503d868e29
3 changed files with 115 additions and 0 deletions
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
namespace App\Element;
|
||||
|
||||
use App\Set\Set;
|
||||
use DomainException;
|
||||
|
||||
interface ElementRepository
|
||||
|
|
@ -12,4 +13,14 @@ interface ElementRepository
|
|||
public function create(CreateElementDto $dto): Element;
|
||||
|
||||
public function find(int $id): ?Element;
|
||||
|
||||
/**
|
||||
* @return list<Element>
|
||||
*/
|
||||
public function findTopLevelBySet(Set $set): array;
|
||||
|
||||
/**
|
||||
* @return list<Element>
|
||||
*/
|
||||
public function findByParentElement(Element $parentElement): array;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue