| 1 | <?php |
||
| 13 | final class ConfigPath implements ConfigPathInterface |
||
| 14 | { |
||
| 15 | private const PATH_SEP = "."; |
||
| 16 | |||
| 17 | private $scope; |
||
| 18 | |||
| 19 | private $parts; |
||
| 20 | |||
| 21 | 10 | public static function fromString(string $path): ConfigPathInterface |
|
| 30 | |||
| 31 | 4 | public function getScope(): string |
|
| 35 | |||
| 36 | 4 | public function getParts(): array |
|
| 40 | |||
| 41 | 4 | public function hasParts(): bool |
|
| 45 | |||
| 46 | 1 | public function getLength(): int |
|
| 50 | |||
| 51 | 1 | public function __toString(): string |
|
| 57 | |||
| 58 | 9 | private function __construct(string $scope, array $parts) |
|
| 66 | } |
||
| 67 |