| 1 | <?php |
||
| 9 | class TestExceptingJob extends AbstractQueuedJob implements QueuedJob |
||
| 10 | { |
||
| 11 | private $type = QueuedJob::QUEUED; |
||
| 12 | |||
| 13 | public function __construct($type = null) |
||
| 18 | |||
| 19 | public function getJobType() |
||
| 23 | |||
| 24 | public function getTitle() |
||
| 28 | |||
| 29 | public function setup() |
||
| 33 | |||
| 34 | public function process() |
||
| 38 | } |
||
| 39 |
Since your code implements the magic setter
_set, this function will be called for any write access on an undefined variable. You can add the@propertyannotation to your class or interface to document the existence of this variable.Since the property has write access only, you can use the @property-write 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.