| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 62 | public function getIconMarkup() |
||
| 63 | { |
||
| 64 | $actionIcons = (array) config('nwlaravel.activity.action_icon'); |
||
| 65 | $iconElement = $actionIcons['element']; |
||
| 66 | $iconPrefix = $actionIcons['class_prefix']; |
||
| 67 | return sprintf('<%s class="%s%s"></%s>', $iconElement, $iconPrefix, $this->getIcon(), $iconElement); |
||
| 68 | } |
||
| 69 | } |
||
| 70 |
Since your code implements the magic getter
_get, this function will be called for any read access on an undefined variable. You can add the@propertyannotation to your class or interface to document the existence of this variable.If the property has read access only, you can use the @property-read 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.