| 1 | <?php |
||
| 17 | class HttpAsyncJob extends BaseJob |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * Set job parameters. |
||
| 21 | * |
||
| 22 | * @param string $method |
||
| 23 | * @param string $url |
||
| 24 | * @param string $content |
||
| 25 | * @param array $headers |
||
| 26 | * |
||
| 27 | * @return $this |
||
| 28 | */ |
||
| 29 | public function withParams($method, $url, $content, array $headers) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Set job parameters. |
||
| 38 | * |
||
| 39 | * @param string $method |
||
| 40 | * @param string $url |
||
| 41 | * @param string $content |
||
| 42 | * @param array $headers |
||
| 43 | * |
||
| 44 | * @return $this |
||
| 45 | */ |
||
| 46 | public function execute($method, $url, $content, array $headers) |
||
| 50 | } |
||
| 51 |
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.