| 1 | <?php |
||
| 16 | class GenerateEmailConfirmationUrlTask extends Task |
||
| 17 | { |
||
| 18 | |||
| 19 | /** |
||
| 20 | * How long to keep the validation code on the memory (valid) |
||
| 21 | * |
||
| 22 | * default: 48 hours (2880 minutes) |
||
| 23 | */ |
||
| 24 | const CONFIRMATION_CODE_VALIDATE_TIME = 2880; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param $email |
||
| 28 | * @param $password |
||
| 29 | * |
||
| 30 | * @return mixed |
||
| 31 | */ |
||
| 32 | public function run(User $user) |
||
| 55 | } |
||
| 56 |
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.