| 1 | <?php |
||
| 22 | class ReverseProxyAuth extends Base implements PreAuthenticationProviderInterface, SessionCheckProviderInterface |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * User properties. |
||
| 26 | * |
||
| 27 | * @var \Jitamin\Services\User\ReverseProxyUserProvider |
||
| 28 | */ |
||
| 29 | protected $userInfo = null; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Get authentication provider name. |
||
| 33 | * |
||
| 34 | * @return string |
||
| 35 | */ |
||
| 36 | public function getName() |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Authenticate the user. |
||
| 43 | * |
||
| 44 | * @return bool |
||
| 45 | */ |
||
| 46 | public function authenticate() |
||
| 59 | |||
| 60 | /** |
||
| 61 | * Check if the user session is valid. |
||
| 62 | * |
||
| 63 | * @return bool |
||
| 64 | */ |
||
| 65 | public function isValidSession() |
||
| 69 | |||
| 70 | /** |
||
| 71 | * Get user object. |
||
| 72 | * |
||
| 73 | * @return ReverseProxyUserProvider |
||
| 74 | */ |
||
| 75 | public function getUser() |
||
| 79 | } |
||
| 80 |
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.