1 | <?php namespace Modules\User\Entities\Sentinel; |
||
9 | class User extends EloquentUser implements UserInterface |
||
10 | { |
||
11 | use PresentableTrait; |
||
12 | |||
13 | protected $fillable = [ |
||
14 | 'email', |
||
15 | 'password', |
||
16 | 'permissions', |
||
17 | 'first_name', |
||
18 | 'last_name', |
||
19 | ]; |
||
20 | |||
21 | /** |
||
22 | * {@inheritDoc} |
||
23 | */ |
||
24 | protected $loginNames = ['email']; |
||
25 | |||
26 | protected $presenter = 'Modules\User\Presenters\UserPresenter'; |
||
27 | |||
28 | public function __construct(array $attributes = []) |
||
35 | |||
36 | /** |
||
37 | * Checks if a user belongs to the given Role ID |
||
38 | * @param int $roleId |
||
39 | * @return bool |
||
40 | */ |
||
41 | public function hasRoleId($roleId) |
||
45 | |||
46 | /** |
||
47 | * Checks if a user belongs to the given Role Name |
||
48 | * @param string $name |
||
49 | * @return bool |
||
50 | */ |
||
51 | public function hasRoleName($name) |
||
55 | |||
56 | /** |
||
57 | * Check if the current user is activated |
||
58 | * @return bool |
||
59 | */ |
||
60 | public function isActivated() |
||
68 | |||
69 | public function __call($method, $parameters) |
||
86 | } |
||
87 |
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..