| Total Complexity | 5 |
| Total Lines | 65 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | abstract class AbstractSeries extends AbstractHelper |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * @var array |
||
| 28 | */ |
||
| 29 | protected $attributes = []; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @var string |
||
| 33 | */ |
||
| 34 | protected $delimiter = PHP_EOL; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @var string |
||
| 38 | */ |
||
| 39 | protected $indent = " "; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @var array |
||
| 43 | */ |
||
| 44 | protected $store = []; |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @param string $indent |
||
| 48 | * @param string $delimiter |
||
| 49 | * |
||
| 50 | * @return AbstractSeries |
||
| 51 | */ |
||
| 52 | 9 | public function __invoke( |
|
| 53 | string $indent = null, |
||
| 54 | string $delimiter = null |
||
| 55 | ): AbstractSeries { |
||
| 56 | 9 | if (null !== $delimiter) { |
|
| 57 | 3 | $this->delimiter = $delimiter; |
|
| 58 | } |
||
| 59 | |||
| 60 | 9 | if (null !== $indent) { |
|
| 61 | 3 | $this->indent = $indent; |
|
| 62 | } |
||
| 63 | |||
| 64 | 9 | $this->store = []; |
|
| 65 | |||
| 66 | 9 | return $this; |
|
| 67 | } |
||
| 68 | |||
| 69 | /** |
||
| 70 | * Generates and returns the HTML for the list. |
||
| 71 | * |
||
| 72 | * @return string |
||
| 73 | */ |
||
| 74 | 9 | public function __toString() |
|
| 81 | } |
||
| 82 | |||
| 83 | /** |
||
| 84 | * Returns the tag name. |
||
| 85 | * |
||
| 86 | * @return string |
||
| 87 | */ |
||
| 88 | abstract protected function getTag(): string; |
||
| 89 | } |
||
| 90 |