| 1 | <?php |
||
| 22 | class InviteUserCommand |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * The user id. |
||
| 26 | * |
||
| 27 | * @var string |
||
| 28 | */ |
||
| 29 | private $id; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * The user email. |
||
| 33 | * |
||
| 34 | * @var string |
||
| 35 | */ |
||
| 36 | private $email; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Constructor. |
||
| 40 | * |
||
| 41 | * @param string $anEmail The user email |
||
| 42 | * @param string|null $anId User id, it can be null |
||
| 43 | */ |
||
| 44 | public function __construct($anEmail, $anId = null) |
||
| 49 | |||
| 50 | /** |
||
| 51 | * Gets the id. |
||
| 52 | * |
||
| 53 | * @return string |
||
| 54 | */ |
||
| 55 | public function id() |
||
| 59 | |||
| 60 | /** |
||
| 61 | * Gets the user email. |
||
| 62 | * |
||
| 63 | * @return string |
||
| 64 | */ |
||
| 65 | public function email() |
||
| 69 | } |
||
| 70 |