1 | <?php |
||
8 | class DeployerShell extends Shell |
||
9 | { |
||
10 | public $tasks = ['ClearCache']; |
||
11 | |||
12 | /** |
||
13 | * Start the shell and interactive console. |
||
14 | * |
||
15 | * @return void |
||
16 | */ |
||
17 | public function main() |
||
32 | |||
33 | /** |
||
34 | * Display help for this console. |
||
35 | * |
||
36 | * @return ConsoleOptionParser |
||
37 | */ |
||
38 | public function getOptionParser() |
||
49 | } |
||
50 |
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.