| Total Complexity | 4 |
| Total Lines | 50 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class DocumentNode extends AbstractNode implements NodeInterface |
||
| 9 | { |
||
| 10 | |||
| 11 | /** |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | protected $kind = NodeKindEnum::DOCUMENT; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var array|DefinitionNodeInterface[] |
||
| 18 | */ |
||
| 19 | protected $definitions; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @return array|DefinitionNodeInterface[] |
||
| 23 | */ |
||
| 24 | public function getDefinitions(): array |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @return array |
||
| 31 | */ |
||
| 32 | public function getDefinitionsAsArray(): array |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @param array|DefinitionNodeInterface[] $definitions |
||
| 41 | * @return DocumentNode |
||
| 42 | */ |
||
| 43 | public function setDefinitions($definitions) |
||
| 44 | { |
||
| 45 | $this->definitions = $definitions; |
||
| 46 | return $this; |
||
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @inheritdoc |
||
| 51 | */ |
||
| 52 | public function toArray(): array |
||
| 58 | ]; |
||
| 59 | } |
||
| 61 |