find elements by set

This commit is contained in:
Yisroel Baum 2026-05-25 08:12:50 +03:00
parent aaa494afe4
commit b44830fa53
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
3 changed files with 12 additions and 6 deletions

View file

@ -2,6 +2,8 @@
namespace App\Element;
use App\Set\Set as DomainSet;
interface ElementRepository
{
public function create(CreateElementDto $dto): Element;
@ -11,5 +13,5 @@ interface ElementRepository
/**
* @return Element[]
*/
public function findBySetId(int $id): array;
public function findBySet(DomainSet $set): array;
}