| 1 | <?php |
||
| 20 | class WorkerCommand extends BaseCommand |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * Configure the console command. |
||
| 24 | * |
||
| 25 | * @return void |
||
| 26 | */ |
||
| 27 | protected function configure() |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Execute the console command. |
||
| 36 | * |
||
| 37 | * @param InputInterface $output |
||
| 38 | * @param OutputInterface $output |
||
| 39 | * |
||
| 40 | * @return void |
||
| 41 | */ |
||
| 42 | protected function execute(InputInterface $input, OutputInterface $output) |
||
| 46 | } |
||
| 47 |
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.