Last active
November 2, 2021 23:42
-
-
Save ismail1432/bad601c13c3149b657a9daef8a886168 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Domain; | |
| final class CreateAUserOutput | |
| { | |
| private string $id; | |
| private string $name; | |
| private int $age; | |
| public function __construct(string $id, string $name, int $age) | |
| { | |
| $this->id = $id; | |
| $this->name = $name; | |
| $this->age = $age; | |
| } | |
| public function getId(): string | |
| { | |
| return $this->id; | |
| } | |
| public function getName(): string | |
| { | |
| return $this->name; | |
| } | |
| public function getAge(): int | |
| { | |
| return $this->age; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment