add ordered element queries

This commit is contained in:
Yisroel Baum 2026-08-08 22:24:02 +03:00
parent 88c8a018ad
commit 503d868e29
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
3 changed files with 115 additions and 0 deletions

View file

@ -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;
}