| Total Complexity | 5 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | final class ButtonViewRenderer implements ButtonViewRendererInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var self|null |
||
| 14 | */ |
||
| 15 | private static $instance; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * {@inheritdoc} |
||
| 19 | */ |
||
| 20 | 7 | public function render(ButtonViewInterface $view, array $attributes): string |
|
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Get the renderer instance |
||
| 37 | * |
||
| 38 | * @return self |
||
| 39 | */ |
||
| 40 | 4 | public static function instance(): self |
|
| 49 |