add id to text and find method to text repo

This commit is contained in:
Yisroel Baum 2026-02-20 11:58:32 +02:00
parent c0994d806e
commit df7ce696a9
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
2 changed files with 3 additions and 0 deletions

View file

@ -5,6 +5,7 @@ namespace App\Text;
class Text
{
public function __construct(
private int $id,
private string $name,
) {}

View file

@ -8,4 +8,6 @@ use App\Text\CreateTextDto;
interface TextRepository
{
public function create(CreateTextDto $dto): Text;
public function find(int $id): ?Text;
}