| Total Complexity | 8 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | final class Version implements PropertyParameterInterface, SimpleNodeInterface |
||
| 13 | { |
||
| 14 | protected const VERSION_4 = '4.0'; |
||
| 15 | |||
| 16 | public const POSSIBLE_VALUES = [ |
||
| 17 | self::VERSION_4, |
||
| 18 | ]; |
||
| 19 | |||
| 20 | private $value; |
||
| 21 | |||
| 22 | public function __construct(string $value) |
||
| 29 | } |
||
| 30 | |||
| 31 | public function __toString(): string |
||
| 32 | { |
||
| 33 | return $this->value; |
||
| 34 | } |
||
| 35 | |||
| 36 | public function getFormatter(): NodeFormatterInterface |
||
| 39 | } |
||
| 40 | |||
| 41 | public static function getNode(): string |
||
| 42 | { |
||
| 43 | return 'VERSION'; |
||
| 44 | } |
||
| 45 | |||
| 46 | public static function getParser(): NodeParserInterface |
||
| 47 | { |
||
| 48 | return new VersionParser(); |
||
| 49 | } |
||
| 50 | |||
| 51 | public static function version4(): self |
||
| 54 | } |
||
| 55 | |||
| 56 | public function isVersion4(): bool |
||
| 59 | } |
||
| 60 | } |
||
| 61 |