Last active
November 2, 2021 23:42
-
-
Save ismail1432/981c174821101ea7acb2b0b35dc38c55 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 CreateAUserInput | |
| { | |
| private string $name; | |
| private int $age; | |
| public function __construct(string $name, int $age) | |
| { | |
| $this->name = $name; | |
| $this->age = $age; | |
| } | |
| 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