1 | <?php |
||
19 | class GroupSync extends Base |
||
20 | { |
||
21 | /** |
||
22 | * Synchronize group membership. |
||
23 | * |
||
24 | * @param int $userId |
||
25 | * @param array $externalGroupIds |
||
26 | */ |
||
27 | public function synchronize($userId, array $externalGroupIds) |
||
33 | |||
34 | /** |
||
35 | * Add missing groups to the user. |
||
36 | * |
||
37 | * @param int $userId |
||
38 | * @param array $userGroups |
||
39 | * @param array $externalGroupIds |
||
40 | */ |
||
41 | protected function addGroups($userId, array $userGroups, array $externalGroupIds) |
||
55 | |||
56 | /** |
||
57 | * Remove groups from the user. |
||
58 | * |
||
59 | * @param int $userId |
||
60 | * @param array $userGroups |
||
61 | * @param array $externalGroupIds |
||
62 | */ |
||
63 | protected function removeGroups($userId, array $userGroups, array $externalGroupIds) |
||
71 | } |
||
72 |
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.