1 | <?php namespace Modules\User\Entities\Sentinel; |
||
10 | class User extends EloquentUser implements UserInterface |
||
11 | { |
||
12 | use PresentableTrait; |
||
13 | |||
14 | protected $fillable = [ |
||
15 | 'email', |
||
16 | 'password', |
||
17 | 'permissions', |
||
18 | 'first_name', |
||
19 | 'last_name', |
||
20 | ]; |
||
21 | |||
22 | /** |
||
23 | * {@inheritDoc} |
||
24 | */ |
||
25 | protected $loginNames = ['email']; |
||
26 | |||
27 | protected $presenter = UserPresenter::class; |
||
28 | |||
29 | public function __construct(array $attributes = []) |
||
36 | |||
37 | /** |
||
38 | * Checks if a user belongs to the given Role ID |
||
39 | * @param int $roleId |
||
40 | * @return bool |
||
41 | */ |
||
42 | public function hasRoleId($roleId) |
||
46 | |||
47 | /** |
||
48 | * Checks if a user belongs to the given Role Name |
||
49 | * @param string $name |
||
50 | * @return bool |
||
51 | */ |
||
52 | public function hasRoleName($name) |
||
56 | |||
57 | /** |
||
58 | * Check if the current user is activated |
||
59 | * @return bool |
||
60 | */ |
||
61 | public function isActivated() |
||
69 | |||
70 | /** |
||
71 | * @return \Illuminate\Database\Eloquent\Relations\HasMany |
||
72 | */ |
||
73 | public function api_keys() |
||
77 | |||
78 | /** |
||
79 | * Get the first available api key |
||
80 | * @return string |
||
81 | */ |
||
82 | public function getFirstApiKey() |
||
92 | |||
93 | public function __call($method, $parameters) |
||
110 | } |
||
111 |
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..