1 | <?php |
||
19 | class UserSync extends Base |
||
20 | { |
||
21 | /** |
||
22 | * Synchronize user profile. |
||
23 | * |
||
24 | * @param UserProviderInterface $user |
||
25 | * |
||
26 | * @return array |
||
27 | */ |
||
28 | public function synchronize(UserProviderInterface $user) |
||
41 | |||
42 | /** |
||
43 | * Update user profile. |
||
44 | * |
||
45 | * @param array $profile |
||
46 | * @param array $properties |
||
47 | * |
||
48 | * @return array |
||
49 | */ |
||
50 | private function updateUser(array $profile, array $properties) |
||
63 | |||
64 | /** |
||
65 | * Create user. |
||
66 | * |
||
67 | * @param UserProviderInterface $user |
||
68 | * @param array $properties |
||
69 | * |
||
70 | * @return array |
||
71 | */ |
||
72 | private function createUser(UserProviderInterface $user, array $properties) |
||
84 | } |
||
85 |
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.