| 1 | <?php |
||
| 20 | class CommentEventJob extends BaseJob |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * Set job params. |
||
| 24 | * |
||
| 25 | * @param int $commentId |
||
| 26 | * @param string $eventName |
||
| 27 | * |
||
| 28 | * @return $this |
||
| 29 | */ |
||
| 30 | public function withParams($commentId, $eventName) |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Execute job. |
||
| 39 | * |
||
| 40 | * @param int $commentId |
||
| 41 | * @param string $eventName |
||
| 42 | * |
||
| 43 | * @return $this |
||
| 44 | */ |
||
| 45 | public function execute($commentId, $eventName) |
||
| 59 | } |
||
| 60 |
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.