| 1 | <?php |
||
| 17 | class EditProfileCommand |
||
| 18 | { |
||
| 19 | private $id; |
||
| 20 | private $email; |
||
| 21 | private $username; |
||
| 22 | private $firstName; |
||
| 23 | private $lastName; |
||
| 24 | private $imageName; |
||
| 25 | private $imageMimeType; |
||
| 26 | private $uploadedImage; |
||
| 27 | |||
| 28 | public function __construct( |
||
| 47 | |||
| 48 | public function id() : string |
||
| 52 | |||
| 53 | public function email() : string |
||
| 57 | |||
| 58 | public function username() : string |
||
| 62 | |||
| 63 | public function firstName() : string |
||
| 67 | |||
| 68 | public function lastName() : string |
||
| 72 | |||
| 73 | public function imageName() |
||
| 77 | |||
| 78 | public function imageMimeType() |
||
| 82 | |||
| 83 | public function uploadedImage() |
||
| 87 | } |
||
| 88 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@returnannotation as described here.