| Total Complexity | 4 |
| Total Lines | 57 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class DirectiveDefinitionNode extends AbstractNode implements DefinitionNodeInterface |
||
| 9 | { |
||
| 10 | |||
| 11 | use DescriptionTrait; |
||
| 12 | use NameTrait; |
||
| 13 | use InputArgumentsTrait; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var string |
||
| 17 | */ |
||
| 18 | protected $kind = NodeKindEnum::DIRECTIVE_DEFINITION; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var NameNode[] |
||
| 22 | */ |
||
| 23 | protected $locations; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @return NameNode[] |
||
| 27 | */ |
||
| 28 | public function getLocations(): array |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @return array |
||
| 35 | */ |
||
| 36 | public function getLocationsAsArray(): array |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @param array|NameNode[] $locations |
||
| 45 | * @return $this |
||
| 46 | */ |
||
| 47 | public function setLocations(array $locations) |
||
| 48 | { |
||
| 49 | $this->locations = $locations; |
||
| 50 | return $this; |
||
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @inheritdoc |
||
| 55 | */ |
||
| 56 | public function toArray(): array |
||
| 65 | ]; |
||
| 66 | } |
||
| 68 |