| Total Complexity | 5 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | final class CNTControl implements SegmentInterface |
||
| 13 | { |
||
| 14 | private array $rawValues; |
||
| 15 | |||
| 16 | 7 | public function __construct(array $rawValues) |
|
| 19 | 7 | } |
|
| 20 | |||
| 21 | 4 | public function tag(): string |
|
| 22 | { |
||
| 23 | 4 | return self::class; |
|
| 24 | } |
||
| 25 | |||
| 26 | 5 | public function subId(): string |
|
| 27 | { |
||
| 28 | 5 | if (!isset($this->rawValues[1][0])) { |
|
| 29 | 1 | throw new MissingSubId('[1][0]', $this->rawValues); |
|
| 30 | } |
||
| 31 | |||
| 32 | 4 | return (string) $this->rawValues[1][0]; |
|
| 33 | } |
||
| 34 | |||
| 35 | 3 | public function rawValues(): array |
|
| 38 | } |
||
| 39 | } |
||
| 40 |