Total Complexity | 4 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | return new class($rawArray) implements SegmentInterface |
||
27 | { |
||
28 | /** @var array */ |
||
29 | private $rawArray; |
||
30 | |||
31 | public function __construct(array $rawArray) |
||
32 | { |
||
33 | $this->rawArray = $rawArray; |
||
34 | } |
||
35 | |||
36 | public function name(): string |
||
37 | { |
||
38 | return $this->rawArray[0]; |
||
39 | } |
||
40 | |||
41 | public function subSegmentKey(): string |
||
42 | { |
||
43 | return $this->rawArray[1]; |
||
44 | } |
||
45 | |||
46 | public function rawValues() |
||
49 | } |
||
50 | }; |
||
51 | } |
||
52 | } |
||
53 |