| Total Complexity | 5 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Coverage | 90.91% |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | final class DTMDateTimePeriod implements SegmentInterface |
||
| 9 | { |
||
| 10 | private array $rawValues; |
||
| 11 | |||
| 12 | 2 | public function __construct(array $rawValues) |
|
| 15 | 2 | } |
|
| 16 | |||
| 17 | 1 | public function name(): string |
|
| 20 | } |
||
| 21 | |||
| 22 | 1 | public function subSegmentKey(): string |
|
| 23 | { |
||
| 24 | 1 | if (!isset($this->rawValues[1][0])) { |
|
| 25 | throw new \Exception('missing sub segment key'); |
||
| 26 | } |
||
| 27 | |||
| 28 | 1 | return (string) $this->rawValues[1][0]; |
|
| 29 | } |
||
| 30 | |||
| 31 | 1 | public function rawValues(): array |
|
| 34 | } |
||
| 35 | } |
||
| 36 |