| Total Complexity | 2 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class ScalarTypeDefinitionNode extends AbstractNode implements TypeDefinitionNodeInterface, DirectivesAwareInterface, |
||
| 8 | NameAwareInterface |
||
| 9 | { |
||
| 10 | use DescriptionTrait; |
||
| 11 | use NameTrait; |
||
| 12 | use DirectivesTrait; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * ScalarTypeDefinitionNode constructor. |
||
| 16 | * |
||
| 17 | * @param StringValueNode|null $description |
||
| 18 | * @param NameNode $name |
||
| 19 | * @param DirectiveNode[] $directives |
||
| 20 | * @param Location|null $location |
||
| 21 | */ |
||
| 22 | public function __construct(?StringValueNode $description, NameNode $name, array $directives, ?Location $location) |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @inheritdoc |
||
| 33 | */ |
||
| 34 | public function toAST(): array |
||
| 45 |