1 | <?php |
||
22 | class SaitoUser implements ForumsUserInterface |
||
23 | { |
||
24 | public $Categories; |
||
25 | |||
26 | /** |
||
27 | * User ID |
||
28 | * |
||
29 | * @var int |
||
30 | */ |
||
31 | protected $_id = null; |
||
32 | |||
33 | /** |
||
34 | * User settings |
||
35 | * |
||
36 | * @var array |
||
37 | */ |
||
38 | protected $_settings = null; |
||
39 | |||
40 | /** |
||
41 | * Constructor. |
||
42 | * |
||
43 | * @param mixed $settings user-settings |
||
44 | */ |
||
45 | public function __construct(array $settings = null) |
||
52 | |||
53 | /** |
||
54 | * {@inheritDoc} |
||
55 | */ |
||
56 | public function setSettings(array $settings) |
||
94 | |||
95 | /** |
||
96 | * Get single user setting. |
||
97 | * |
||
98 | * @param string $setting setting-key |
||
99 | * @return null|mixed null if setting not found |
||
100 | */ |
||
101 | public function get($setting) |
||
109 | |||
110 | /** |
||
111 | * {@inheritDoc} |
||
112 | */ |
||
113 | public function set(string $setting, $value) |
||
117 | |||
118 | /** |
||
119 | * {@inheritDoc} |
||
120 | */ |
||
121 | public function getSettings() |
||
125 | |||
126 | /** |
||
127 | * {@inheritDoc} |
||
128 | */ |
||
129 | public function getId() |
||
133 | |||
134 | /** |
||
135 | * {@inheritDoc} |
||
136 | */ |
||
137 | public function isUser($user) |
||
149 | |||
150 | /** |
||
151 | * Checks if user is forbidden. |
||
152 | * |
||
153 | * @return bool |
||
154 | */ |
||
155 | public function isLocked(): bool |
||
159 | |||
160 | /** |
||
161 | * Checks if user is forbidden. |
||
162 | * |
||
163 | * @return bool |
||
164 | */ |
||
165 | public function isActivated() : bool |
||
169 | |||
170 | /** |
||
171 | * Get role. |
||
172 | * |
||
173 | * @return string |
||
174 | */ |
||
175 | public function getRole() |
||
183 | |||
184 | /** |
||
185 | * Check if user has permission to access a resource. |
||
186 | * |
||
187 | * @param string $resource resource |
||
188 | * @return bool |
||
189 | */ |
||
190 | public function permission($resource) |
||
196 | } |
||
197 |
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..