1 | <?php |
||
9 | class Administrator extends Entity |
||
10 | { |
||
11 | const TYPE_CREATOR = 'super'; |
||
12 | const TYPE_DISPATCHER = 'standard'; |
||
13 | |||
14 | protected $name; |
||
15 | protected $email; |
||
16 | protected $phone; |
||
17 | protected $type; |
||
18 | protected $isActive; |
||
19 | protected $timeCreated; |
||
20 | protected $timeLastModified; |
||
21 | protected $organization; |
||
22 | protected $metadata = []; |
||
23 | |||
24 | protected $endpoint = 'admins'; |
||
25 | |||
26 | protected static $properties = [ |
||
27 | 'id', |
||
28 | 'name', |
||
29 | 'email', |
||
30 | 'phone', |
||
31 | 'isActive', |
||
32 | 'organization', |
||
33 | 'type', |
||
34 | 'metadata', |
||
35 | 'timeCreated', |
||
36 | 'timeLastModified', |
||
37 | ]; |
||
38 | |||
39 | /** |
||
40 | * @return mixed |
||
41 | */ |
||
42 | public function getName() |
||
46 | |||
47 | /** |
||
48 | * @param mixed $name |
||
49 | */ |
||
50 | public function setName($name) |
||
54 | |||
55 | /** |
||
56 | * @return mixed |
||
57 | */ |
||
58 | public function getEmail() |
||
62 | |||
63 | /** |
||
64 | * @param mixed $email |
||
65 | */ |
||
66 | public function setEmail($email) |
||
70 | |||
71 | /** |
||
72 | * @return mixed |
||
73 | */ |
||
74 | public function getPhone() |
||
78 | |||
79 | /** |
||
80 | * @param mixed $phone |
||
81 | */ |
||
82 | public function setPhone($phone) |
||
86 | |||
87 | /** |
||
88 | * @return mixed |
||
89 | */ |
||
90 | public function getType() |
||
94 | |||
95 | /** |
||
96 | * @param mixed $type |
||
97 | */ |
||
98 | public function setType($type) |
||
102 | |||
103 | /** |
||
104 | * @return boolean |
||
105 | */ |
||
106 | public function isActive() |
||
110 | |||
111 | /** |
||
112 | * @return mixed |
||
113 | */ |
||
114 | public function getTimeCreated() |
||
118 | |||
119 | /** |
||
120 | * @return mixed |
||
121 | */ |
||
122 | public function getTimeLastModified() |
||
126 | |||
127 | /** |
||
128 | * @return mixed |
||
129 | */ |
||
130 | public function getOrganization() |
||
134 | |||
135 | /** |
||
136 | * @return array |
||
137 | */ |
||
138 | public function getMetadata(): array |
||
142 | } |
||
143 | |||
144 |