Conditions | 2 |
Paths | 2 |
Total Lines | 6 |
Code Lines | 3 |
Lines | 3 |
Ratio | 50 % |
Changes | 0 |
1 | <?php |
||
42 | protected function processEntityParent(Template\Block $parent) { |
||
43 | |||
44 | View Code Duplication | if (0 !== $this->parent->id) $parent->getBlock('browse')->link = $this->parent->link; |
|
45 | |||
46 | else { $parent->getBlock('browse')->disable(); $parent->getBlock('browse_disabled')->enable(); } |
||
47 | } |
||
48 | |||
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.