| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | public function process(HtmlElement $element) |
||
| 15 | { |
||
| 16 | $element->setTag('a'); |
||
| 17 | |||
| 18 | $element->href = '{{route('.$element->getAttributeForBlade('route').', '.$element->getAttributeForBlade('route-parameters', '[]').')}}'; |
||
|
|
|||
| 19 | |||
| 20 | $element->removeAttribute('route'); |
||
| 21 | $element->removeAttribute('route-parameters'); |
||
| 22 | } |
||
| 23 | } |
||
| 24 |
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.