1 | <?php |
||
11 | class SessionsActivityComponent extends Component |
||
12 | { |
||
13 | |||
14 | /** |
||
15 | * Request object |
||
16 | * |
||
17 | * @var \Cake\Network\Request |
||
18 | */ |
||
19 | protected $_request; |
||
20 | |||
21 | /** |
||
22 | * Instance of the Session object |
||
23 | * |
||
24 | * @return void |
||
25 | */ |
||
26 | protected $_session; |
||
27 | |||
28 | /** |
||
29 | * Initialize properties. |
||
30 | * |
||
31 | * @param array $config The config data. |
||
32 | * |
||
33 | * @return void |
||
34 | */ |
||
35 | public function initialize(array $config) |
||
41 | |||
42 | /** |
||
43 | * Startup event to trace the user on the website. |
||
44 | * |
||
45 | * @param Event $event The event that was fired. |
||
46 | * |
||
47 | * @return void |
||
48 | */ |
||
49 | public function startup(Event $event) |
||
78 | |||
79 | /** |
||
80 | * Get the list of the users online. |
||
81 | * |
||
82 | * @return array |
||
83 | */ |
||
84 | public function getOnlineUsers() |
||
129 | |||
130 | /** |
||
131 | * Determine if the given user is online or offline. |
||
132 | * |
||
133 | * @param \App\Model\Entity\User $user The user to check. |
||
134 | * |
||
135 | * @return bool |
||
136 | */ |
||
137 | public function getOnlineStatus(User $user) |
||
154 | |||
155 | /** |
||
156 | * Get all the sessions online for the given user. |
||
157 | * |
||
158 | * @param int $user The user id. |
||
159 | * |
||
160 | * @return false|array |
||
161 | */ |
||
162 | public function getOnlineSessionsForUser($user) |
||
179 | |||
180 | } |
||
181 |
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..