Total Complexity | 4 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
13 | final class PathEncoder implements PathEncoderInterface |
||
14 | { |
||
15 | |||
16 | public function encodePath(PathInterface $path): string |
||
17 | { |
||
18 | return '$' . implode('', array_map([$this, 'encodePathElement'], $path->getElements())); |
||
19 | } |
||
20 | |||
21 | private function encodePathElement($pathElement): string |
||
34 | } |
||
35 | } |
||
36 |