diff --git a/app/Text/CreateTextDto.php b/app/Text/CreateTextDto.php index 31e68e8..6dcda1e 100644 --- a/app/Text/CreateTextDto.php +++ b/app/Text/CreateTextDto.php @@ -2,9 +2,12 @@ namespace App\Text; +use App\User\User; + class CreateTextDto { public function __construct( public string $name, + public User $user, ) {} } diff --git a/app/Text/Text.php b/app/Text/Text.php index 63f4403..27031f0 100644 --- a/app/Text/Text.php +++ b/app/Text/Text.php @@ -2,11 +2,14 @@ namespace App\Text; +use App\User\User; + class Text { public function __construct( private int $id, private string $name, + private User $user, ) {} public function getId(): int @@ -18,4 +21,9 @@ class Text { return $this->name; } + + public function getUser(): User + { + return $this->user; + } }