enforce element parent scope
This commit is contained in:
parent
eccfed2350
commit
588a3ecb40
3 changed files with 43 additions and 0 deletions
|
|
@ -2,8 +2,13 @@
|
|||
|
||||
namespace App\Element;
|
||||
|
||||
use DomainException;
|
||||
|
||||
interface ElementRepository
|
||||
{
|
||||
/**
|
||||
* @throws DomainException
|
||||
*/
|
||||
public function create(CreateElementDto $dto): Element;
|
||||
|
||||
public function find(int $id): ?Element;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue