Conditions | 3 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
1 | <?php |
||
31 | protected function processEntity(Template\Asset\Block $contents) { |
||
32 | |||
33 | if ((0 === $this->parent->id) || ('' === $this->parent->link)) { |
||
34 | |||
35 | $contents->block('parent')->block('browse')->disable(); |
||
36 | |||
37 | } else $contents->block('parent')->block('browse')->link = $this->parent->link; |
||
38 | } |
||
39 | |||
56 |
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@property
annotation 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.