1 | <?php |
||
19 | class User extends AbstractModel |
||
20 | { |
||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | private $id; |
||
25 | |||
26 | /** |
||
27 | * @var string|null |
||
28 | */ |
||
29 | private $team_id; |
||
30 | |||
31 | /** |
||
32 | * @var string |
||
33 | */ |
||
34 | private $name; |
||
35 | |||
36 | /** |
||
37 | * @var string|null |
||
38 | */ |
||
39 | private $color; |
||
40 | |||
41 | /** |
||
42 | * @var UserProfile|null |
||
43 | */ |
||
44 | private $profile; |
||
45 | |||
46 | /** |
||
47 | * @var bool|null |
||
48 | */ |
||
49 | private $isAdmin; |
||
50 | |||
51 | /** |
||
52 | * @var bool|null |
||
53 | */ |
||
54 | private $isBot; |
||
55 | |||
56 | /** |
||
57 | * @var bool|null |
||
58 | */ |
||
59 | private $isRestricted; |
||
60 | |||
61 | /** |
||
62 | * @var bool|null |
||
63 | */ |
||
64 | private $isUltraRestricted; |
||
65 | |||
66 | /** |
||
67 | * @var bool|null |
||
68 | */ |
||
69 | private $deleted; |
||
70 | |||
71 | /** |
||
72 | * @var bool|null |
||
73 | */ |
||
74 | private $hasFiles; |
||
75 | |||
76 | /** |
||
77 | * @return string The ID of this member. |
||
78 | */ |
||
79 | 3 | public function getId() |
|
83 | |||
84 | /** |
||
85 | * @return null|string |
||
86 | */ |
||
87 | public function getTeamId() |
||
91 | |||
92 | /** |
||
93 | * @return string The (user)name of this member |
||
94 | */ |
||
95 | 3 | public function getName() |
|
99 | |||
100 | /** |
||
101 | * @return string|null Hexadecimal colorcode used in some clients to display a colored username. |
||
102 | */ |
||
103 | 3 | public function getColor() |
|
107 | |||
108 | /** |
||
109 | * @return MemberProfile The profile object for this member |
||
110 | */ |
||
111 | 3 | public function getProfile() |
|
115 | |||
116 | /** |
||
117 | * @return bool True if the user has been given the admin role, false otherwise. |
||
118 | */ |
||
119 | 3 | public function isAdmin() |
|
123 | |||
124 | /** |
||
125 | * @return bool True if the user is a bot, false otherwise. |
||
126 | */ |
||
127 | 3 | public function isBot() |
|
131 | |||
132 | /** |
||
133 | * @return bool True if the user has restrictions applied, false otherwise. |
||
134 | */ |
||
135 | 3 | public function isRestricted() |
|
139 | |||
140 | /** |
||
141 | * @return bool True if the user has ultra restrictions applied, false otherwise. |
||
142 | */ |
||
143 | 3 | public function isUltraRestricted() |
|
147 | |||
148 | /** |
||
149 | * @return bool True if the user has been deactivated. |
||
150 | */ |
||
151 | 3 | public function isDeleted() |
|
155 | |||
156 | /** |
||
157 | * @return bool True if the user has added files to the Slack instance, false otherwise. |
||
158 | */ |
||
159 | 3 | public function hasFiles() |
|
163 | } |
||
164 |