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