Total Complexity | 14 |
Total Lines | 52 |
Duplicated Lines | 0 % |
Coverage | 84.38% |
Changes | 0 |
1 | <?php |
||
7 | final class SegmentFactory |
||
8 | { |
||
9 | /** @var CustomSegmentFactoryInterface|null */ |
||
10 | private $customSegmentsFactory; |
||
11 | |||
12 | 7 | public function __construct(?CustomSegmentFactoryInterface $customSegmentsFactory) |
|
13 | { |
||
14 | 7 | $this->customSegmentsFactory = $customSegmentsFactory; |
|
15 | 7 | } |
|
16 | |||
17 | 7 | public function segmentFromArray(array $rawArray): SegmentInterface |
|
47 | } |
||
48 | |||
49 | 7 | private function customSegment(array $rawArray): ?SegmentInterface |
|
61 |