19 lines
358 B
PHP
19 lines
358 B
PHP
<?php
|
|
|
|
namespace App\Element;
|
|
|
|
use App\Set\Set as DomainSet;
|
|
|
|
interface ElementRepository
|
|
{
|
|
public function create(CreateElementDto $dto): Element;
|
|
|
|
public function find(int $id): ?Element;
|
|
|
|
public function findRootBySet(DomainSet $set): ?Element;
|
|
|
|
/**
|
|
* @return Element[]
|
|
*/
|
|
public function findBySet(DomainSet $set): array;
|
|
}
|