| Total Complexity | 4 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | class JsonPathName |
||
| 6 | { |
||
| 7 | /** @var string */ |
||
| 8 | private $path; |
||
| 9 | |||
| 10 | public function __construct(string $path) |
||
| 11 | { |
||
| 12 | $this->ensureIsNotEmpty($path); |
||
| 13 | $this->path = $path; |
||
| 14 | } |
||
| 15 | |||
| 16 | public function asString(): string |
||
| 19 | } |
||
| 20 | |||
| 21 | private function ensureIsNotEmpty(string $path): void |
||
| 25 | } |
||
| 26 | } |
||
| 28 |