| 1 | <?php |
||
| 19 | class NotificationJob extends BaseJob |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * Set job parameters. |
||
| 23 | * |
||
| 24 | * @param GenericEvent $event |
||
| 25 | * @param string $eventName |
||
| 26 | * |
||
| 27 | * @return $this |
||
| 28 | */ |
||
| 29 | public function withParams(GenericEvent $event, $eventName) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Execute job. |
||
| 38 | * |
||
| 39 | * @param array $eventData |
||
| 40 | * @param string $eventName |
||
| 41 | */ |
||
| 42 | public function execute(array $eventData, $eventName) |
||
| 51 | } |
||
| 52 |
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.