diff --git a/app/Text/Text.php b/app/Text/Text.php index 7048c91..b5152d8 100644 --- a/app/Text/Text.php +++ b/app/Text/Text.php @@ -5,6 +5,7 @@ namespace App\Text; class Text { public function __construct( + private int $id, private string $name, ) {} diff --git a/app/Text/TextRepository.php b/app/Text/TextRepository.php index 06d6724..a280407 100644 --- a/app/Text/TextRepository.php +++ b/app/Text/TextRepository.php @@ -8,4 +8,6 @@ use App\Text\CreateTextDto; interface TextRepository { public function create(CreateTextDto $dto): Text; + + public function find(int $id): ?Text; }