Attainly/backend/app/Element/ElementRepository.php

15 lines
238 B
PHP

<?php
namespace App\Element;
use DomainException;
interface ElementRepository
{
/**
* @throws DomainException
*/
public function create(CreateElementDto $dto): Element;
public function find(int $id): ?Element;
}