| 1 | <?php |
||
| 22 | class QueueManager extends Base |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * @var Queue |
||
| 26 | */ |
||
| 27 | protected $queue = null; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Set queue driver. |
||
| 31 | * |
||
| 32 | * @param Queue $queue |
||
| 33 | * |
||
| 34 | * @return $this |
||
| 35 | */ |
||
| 36 | public function setQueue(Queue $queue) |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Send a new job to the queue. |
||
| 45 | * |
||
| 46 | * @param BaseJob $job |
||
| 47 | * |
||
| 48 | * @return $this |
||
| 49 | */ |
||
| 50 | public function push(BaseJob $job) |
||
| 64 | |||
| 65 | /** |
||
| 66 | * Wait for new jobs. |
||
| 67 | * |
||
| 68 | * @throws LogicException |
||
| 69 | */ |
||
| 70 | public function listen() |
||
| 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.