| Total Complexity | 3 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | final class SegmentList |
||
| 13 | { |
||
| 14 | private SegmentFactoryInterface $segmentFactory; |
||
| 15 | |||
| 16 | /** @psalm-pure */ |
||
| 17 | 10 | public static function withDefaultFactory(): self |
|
| 18 | { |
||
| 19 | 10 | return new self(SegmentFactory::withDefaultSegments()); |
|
| 20 | } |
||
| 21 | |||
| 22 | 13 | public function __construct(SegmentFactoryInterface $segmentFactory) |
|
| 25 | 13 | } |
|
| 26 | |||
| 27 | /** @return SegmentInterface[] */ |
||
| 28 | 13 | public function fromRaw(array $rawArrays): array |
|
| 33 | ); |
||
| 34 | } |
||
| 36 |