Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
50.00% |
1 / 2 |
|
50.00% |
1 / 2 |
CRAP | |
0.00% |
0 / 1 |
| StringList | |
50.00% |
1 / 2 |
|
50.00% |
1 / 2 |
2.50 | |
0.00% |
0 / 1 |
| offsetGet | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| join | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | namespace Apie\Core\Lists; |
| 3 | |
| 4 | class StringList extends ItemList |
| 5 | { |
| 6 | protected bool $mutable = false; |
| 7 | |
| 8 | public function offsetGet(mixed $offset): string |
| 9 | { |
| 10 | return parent::offsetGet($offset); |
| 11 | } |
| 12 | |
| 13 | public function join(string $separator = ','): string |
| 14 | { |
| 15 | return implode($separator, $this->internal); |
| 16 | } |
| 17 | } |