| Total Complexity | 6 |
| Total Lines | 82 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class UpdateUserProfileCommand implements CommandInterface |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var UuidInterface |
||
| 11 | */ |
||
| 12 | private $id; |
||
| 13 | /** |
||
| 14 | * @var string |
||
| 15 | */ |
||
| 16 | private $firstName; |
||
| 17 | /** |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | private $lastName; |
||
| 21 | /** |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | private $email; |
||
| 25 | /** |
||
| 26 | * @var ?string |
||
| 27 | */ |
||
| 28 | private $plainPassword; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param UuidInterface $id |
||
| 32 | * @param string $firstName |
||
| 33 | * @param string $lastName |
||
| 34 | * @param string $email |
||
| 35 | * @param ?string $plainPassword |
||
| 36 | */ |
||
| 37 | 2 | public function __construct( |
|
| 38 | UuidInterface $id, |
||
| 39 | string $firstName, |
||
| 40 | string $lastName, |
||
| 41 | string $email, |
||
| 42 | ?string $plainPassword) |
||
| 43 | { |
||
| 44 | 2 | $this->id = $id; |
|
| 45 | 2 | $this->firstName = $firstName; |
|
| 46 | 2 | $this->lastName = $lastName; |
|
| 47 | 2 | $this->email = $email; |
|
| 48 | 2 | $this->plainPassword = $plainPassword; |
|
| 49 | 2 | } |
|
| 50 | |||
| 51 | /** |
||
| 52 | * @return UuidInterface |
||
| 53 | */ |
||
| 54 | 2 | public function getId(): UuidInterface |
|
| 55 | { |
||
| 56 | 2 | return $this->id; |
|
| 57 | } |
||
| 58 | |||
| 59 | /** |
||
| 60 | * @return string |
||
| 61 | */ |
||
| 62 | 2 | public function getFirstName(): string |
|
| 65 | } |
||
| 66 | |||
| 67 | /** |
||
| 68 | * @return string |
||
| 69 | */ |
||
| 70 | 2 | public function getLastName(): string |
|
| 73 | } |
||
| 74 | |||
| 75 | /** |
||
| 76 | * @return string |
||
| 77 | */ |
||
| 78 | 2 | public function getEmail(): string |
|
| 79 | { |
||
| 80 | 2 | return $this->email; |
|
| 81 | } |
||
| 82 | |||
| 83 | /** |
||
| 84 | * @return ?string |
||
| 85 | */ |
||
| 86 | 2 | public function getPlainPassword(): ?string |
|
| 89 | } |
||
| 90 | } |
||
| 91 |