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 | * Array which contains the roles. |
||
40 | * |
||
41 | * @var array |
||
42 | */ |
||
43 | private $roles; |
||
44 | |||
45 | /** |
||
46 | * Constructor. |
||
47 | * |
||
48 | * @param string $anEmail The user email |
||
49 | * @param array $roles Array which contains the roles |
||
50 | * @param string|null $anId User id, it can be null |
||
51 | */ |
||
52 | public function __construct($anEmail, array $roles, $anId = null) |
||
58 | |||
59 | /** |
||
60 | * Gets the id. |
||
61 | * |
||
62 | * @return string |
||
63 | */ |
||
64 | public function id() |
||
68 | |||
69 | /** |
||
70 | * Gets the user email. |
||
71 | * |
||
72 | * @return string |
||
73 | */ |
||
74 | public function email() |
||
78 | |||
79 | /** |
||
80 | * Gets the roles. |
||
81 | * |
||
82 | * @return array |
||
83 | */ |
||
84 | public function roles() |
||
88 | } |
||
89 |