1 | <?php |
||
12 | class SuperAdminPolicy |
||
13 | { |
||
14 | |||
15 | use HandlesAuthorization; |
||
16 | |||
17 | /** |
||
18 | * Determine if the given post can be updated by the user. |
||
19 | * @return bool |
||
20 | */ |
||
21 | public function isSuperAdmin(Administrators $administrator) |
||
29 | |||
30 | |||
31 | /** |
||
32 | * Determine if the given post can be updated by the user. |
||
33 | * @return bool |
||
34 | */ |
||
35 | public function isExpired(Administrators $administrator) |
||
45 | |||
46 | } |
||
47 |
Since your code implements the magic getter
_get
, this function will be called for any read access on an undefined variable. You can add the@property
annotation to your class or interface to document the existence of this variable.If the property has read access only, you can use the @property-read annotation instead.
Of course, you may also just have mistyped another name, in which case you should fix the error.
See also the PhpDoc documentation for @property.