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 | 8 | public static function factory(?SegmentFactoryInterface $segmentFactory = null): self |
|
18 | { |
||
19 | 8 | return new self($segmentFactory ?? new SegmentFactory()); |
|
20 | } |
||
21 | |||
22 | 8 | private function __construct(SegmentFactoryInterface $segmentFactory) |
|
25 | 8 | } |
|
26 | |||
27 | /** @return SegmentInterface[] */ |
||
28 | 8 | public function fromRaw(array $rawArrays): array |
|
33 | ); |
||
34 | } |
||
36 |