Total Complexity | 2 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
7 | class OperationTypeDefinitionNode extends AbstractNode implements DefinitionNodeInterface |
||
8 | { |
||
9 | |||
10 | use TypeTrait; |
||
11 | |||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | protected $kind = NodeKindEnum::OPERATION_TYPE_DEFINITION; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $operation; |
||
21 | |||
22 | /** |
||
23 | * @return string |
||
24 | */ |
||
25 | public function getOperation(): string |
||
26 | { |
||
27 | return $this->operation; |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * @inheritdoc |
||
32 | */ |
||
33 | public function toArray(): array |
||
40 | ]; |
||
41 | } |
||
43 |