| 1 | <?php |
||
| 21 | class RememberMeAuth extends Base implements PreAuthenticationProviderInterface |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * User properties. |
||
| 25 | * |
||
| 26 | * @var array |
||
| 27 | */ |
||
| 28 | protected $userInfo = []; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Get authentication provider name. |
||
| 32 | * |
||
| 33 | * @return string |
||
| 34 | */ |
||
| 35 | public function getName() |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Authenticate the user. |
||
| 42 | * |
||
| 43 | * @return bool |
||
| 44 | */ |
||
| 45 | public function authenticate() |
||
| 67 | |||
| 68 | /** |
||
| 69 | * Get user object. |
||
| 70 | * |
||
| 71 | * @return DatabaseUserProvider |
||
| 72 | */ |
||
| 73 | public function getUser() |
||
| 81 | } |
||
| 82 |
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@propertyannotation 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.