| Total Complexity | 5 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | class XPathType implements Base |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | protected $text; |
||
| 23 | |||
| 24 | 1 | protected function __construct(string $text) |
|
| 25 | { |
||
| 26 | 1 | $this->text = $text; |
|
| 27 | 1 | } |
|
| 28 | |||
| 29 | 1 | public function __toString() : string |
|
| 30 | { |
||
| 31 | 1 | return $this->text; |
|
| 32 | } |
||
| 33 | |||
| 34 | 1 | public function DataTypeAsString() : string |
|
| 37 | } |
||
| 38 | |||
| 39 | 1 | public function jsonSerialize() : string |
|
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @psalm-return T |
||
| 46 | */ |
||
| 47 | 1 | public static function DataTypeFromString(string $value) : Upstream |
|
| 52 |