20 lines
333 B
PHP
20 lines
333 B
PHP
<?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;
|
|
}
|