add explicit set levels
This commit is contained in:
parent
7e8850b1b2
commit
0d102fcee0
7 changed files with 223 additions and 0 deletions
20
backend/app/Set/SetLevelRepository.php
Normal file
20
backend/app/Set/SetLevelRepository.php
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
<?php
|
||||
|
||||
namespace App\Set;
|
||||
|
||||
use DomainException;
|
||||
|
||||
interface SetLevelRepository
|
||||
{
|
||||
/**
|
||||
* @throws DomainException
|
||||
*/
|
||||
public function create(CreateSetLevelDto $dto): SetLevel;
|
||||
|
||||
public function find(int $id): ?SetLevel;
|
||||
|
||||
/**
|
||||
* @return list<SetLevel>
|
||||
*/
|
||||
public function findBySet(Set $set): array;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue