| 1 | <?php |
||
| 17 | class EmailJob extends BaseJob |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * Set job parameters. |
||
| 21 | * |
||
| 22 | * @param string $email |
||
| 23 | * @param string $name |
||
| 24 | * @param string $subject |
||
| 25 | * @param string $html |
||
| 26 | * @param string $author |
||
| 27 | * |
||
| 28 | * @return $this |
||
| 29 | */ |
||
| 30 | public function withParams($email, $name, $subject, $html, $author) |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Execute job. |
||
| 39 | * |
||
| 40 | * @param string $email |
||
| 41 | * @param string $name |
||
| 42 | * @param string $subject |
||
| 43 | * @param string $html |
||
| 44 | * @param string $author |
||
| 45 | */ |
||
| 46 | public function execute($email, $name, $subject, $html, $author) |
||
| 60 | } |
||
| 61 |
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.