Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
50 | public function push(BaseJob $job) |
||
51 | { |
||
52 | $jobClassName = get_class($job); |
||
53 | |||
54 | if ($this->queue !== null) { |
||
55 | $this->logger->debug(__METHOD__.': Job pushed in queue: '.$jobClassName); |
||
|
|||
56 | $this->queue->push(JobHandler::getInstance($this->container)->serializeJob($job)); |
||
57 | } else { |
||
58 | $this->logger->debug(__METHOD__.': Job executed synchronously: '.$jobClassName); |
||
59 | call_user_func_array([$job, 'execute'], $job->getJobParams()); |
||
60 | } |
||
61 | |||
62 | return $this; |
||
63 | } |
||
64 | |||
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@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.