| Total Complexity | 5 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Coverage | 63.64% |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 10 | class StringLiteral extends ASTNode |
||
| 11 | { |
||
| 12 | 16 | public function __construct( |
|
| 13 | private string $value |
||
| 14 | ) |
||
| 15 | { |
||
| 16 | 16 | } |
|
| 17 | |||
| 18 | 16 | public function getType(): string |
|
| 19 | { |
||
| 20 | 16 | return 'StringLiteral'; |
|
| 21 | } |
||
| 22 | |||
| 23 | public function getValue(): string |
||
| 26 | } |
||
| 27 | |||
| 28 | 16 | #[ArrayShape(['type' => "string", 'value' => "string"])] |
|
| 29 | public function toArray(): array |
||
| 30 | { |
||
| 31 | return [ |
||
| 32 | 16 | 'type' => $this->getType(), |
|
| 33 | 16 | 'value' => $this->value, |
|
| 34 | ]; |
||
| 35 | } |
||
| 36 | |||
| 37 | public function toResolver(ArgumentResolverFactory $argumentResolverFactory): ArgumentResolver |
||
| 40 | } |
||
| 41 | } |
||
| 42 |