1 | <?php |
||
20 | class SaitoUser implements ForumsUserInterface |
||
21 | { |
||
22 | public $Categories; |
||
23 | |||
24 | /** |
||
25 | * User ID |
||
26 | * |
||
27 | * @var int |
||
28 | */ |
||
29 | protected $_id = null; |
||
30 | |||
31 | /** |
||
32 | * Stores if a user is logged in |
||
33 | * |
||
34 | * @var bool |
||
35 | */ |
||
36 | protected $_isLoggedIn = false; |
||
37 | |||
38 | /** |
||
39 | * User settings |
||
40 | * |
||
41 | * @var array |
||
42 | */ |
||
43 | protected $_settings = null; |
||
44 | |||
45 | /** |
||
46 | * Constructor. |
||
47 | * |
||
48 | * @param mixed $settings user-settings |
||
49 | */ |
||
50 | public function __construct($settings = null) |
||
57 | |||
58 | /** |
||
59 | * {@inheritDoc} |
||
60 | */ |
||
61 | public function setSettings($settings) |
||
103 | |||
104 | /** |
||
105 | * Get single user setting. |
||
106 | * |
||
107 | * @param string $setting setting-key |
||
108 | * @return null|mixed null if setting not found |
||
109 | */ |
||
110 | public function get($setting) |
||
118 | |||
119 | /** |
||
120 | * Set single setting. |
||
121 | * |
||
122 | * @param string $setting setting-key |
||
123 | * @param mixed $value value to set |
||
124 | * @return void |
||
125 | */ |
||
126 | public function set($setting, $value) |
||
130 | |||
131 | /** |
||
132 | * {@inheritDoc} |
||
133 | */ |
||
134 | public function getSettings() |
||
138 | |||
139 | /** |
||
140 | * {@inheritDoc} |
||
141 | */ |
||
142 | public function getId() |
||
146 | |||
147 | /** |
||
148 | * {@inheritDoc} |
||
149 | */ |
||
150 | public function isLoggedIn() |
||
154 | |||
155 | /** |
||
156 | * {@inheritDoc} |
||
157 | */ |
||
158 | public function isUser($user) |
||
170 | |||
171 | /** |
||
172 | * Checks if user is forbidden. |
||
173 | * |
||
174 | * @return bool |
||
175 | */ |
||
176 | public function isLocked(): bool |
||
180 | |||
181 | /** |
||
182 | * Checks if user is forbidden. |
||
183 | * |
||
184 | * @return bool |
||
185 | */ |
||
186 | public function isActivated() : bool |
||
190 | |||
191 | /** |
||
192 | * Get role. |
||
193 | * |
||
194 | * @return string |
||
195 | */ |
||
196 | public function getRole() |
||
204 | |||
205 | /** |
||
206 | * Check if user has permission to access a resource. |
||
207 | * |
||
208 | * @param string $resource resource |
||
209 | * @return bool |
||
210 | */ |
||
211 | public function permission($resource) |
||
217 | } |
||
218 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..