| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php namespace Comodojo\Extender\Jobs; |
||
| 32 | public function __construct($process_output) { |
||
| 33 | |||
| 34 | $this->pid = $process_output[0]; |
||
|
|
|||
| 35 | $this->name = $process_output[1]; |
||
| 36 | $this->success = $process_output[2]; |
||
| 37 | $this->start = $process_output[3]; |
||
| 38 | $this->end = $process_output[4]; |
||
| 39 | $this->result = $process_output[5]; |
||
| 40 | $this->id = $process_output[6]; |
||
| 41 | $this->wid = $process_output[7]; |
||
| 42 | |||
| 43 | } |
||
| 44 | |||
| 52 |
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.