| 1 | <?php |
||
| 21 | class ChangeUserPasswordCommand |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * The user id. |
||
| 25 | * |
||
| 26 | * @var string |
||
| 27 | */ |
||
| 28 | private $id; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * The new plain password. |
||
| 32 | * |
||
| 33 | * @var string |
||
| 34 | */ |
||
| 35 | private $newPlainPassword; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * The old plain password. |
||
| 39 | * |
||
| 40 | * @var string |
||
| 41 | */ |
||
| 42 | private $oldPlainPassword; |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Constructor. |
||
| 46 | * |
||
| 47 | * @param string $anId The user id |
||
| 48 | * @param string $aNewPlainPassword The new plain password |
||
| 49 | * @param string $anOldPlainPassword The old plain password |
||
| 50 | */ |
||
| 51 | public function __construct($anId, $aNewPlainPassword, $anOldPlainPassword) |
||
| 57 | |||
| 58 | /** |
||
| 59 | * Gets the user id. |
||
| 60 | * |
||
| 61 | * @return string |
||
| 62 | */ |
||
| 63 | public function id() |
||
| 67 | |||
| 68 | /** |
||
| 69 | * Gets the new plain password. |
||
| 70 | * |
||
| 71 | * @return string |
||
| 72 | */ |
||
| 73 | public function newPlainPassword() |
||
| 77 | |||
| 78 | /** |
||
| 79 | * Gets the old plain password. |
||
| 80 | * |
||
| 81 | * @return string |
||
| 82 | */ |
||
| 83 | public function oldPlainPassword() |
||
| 87 | } |
||
| 88 |