| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php namespace Comodojo\Extender\Jobs; |
||
| 33 | public function __construct($name, $id, $task, $class, $parameters=array()) { |
||
| 34 | |||
| 35 | $this->name = $name; |
||
|
|
|||
| 36 | $this->id = $id; |
||
| 37 | $this->task = $task; |
||
| 38 | $this->class = $class; |
||
| 39 | $this->parameters = new Parameters($parameters); |
||
| 40 | |||
| 41 | $this->uid = self::getUid(); |
||
| 42 | |||
| 43 | } |
||
| 44 | |||
| 57 |
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.