name = $name; } public function getNodeType(): string { return 'group'; } /** * @inheritDoc * * @param Section[] $nodes * * @throws TypeNotSupported */ public function append(Node ...$nodes) { foreach ($nodes as $node) { if ( ! $node instanceof Section) { throw new TypeNotSupported($node->getType()); } $this->insert($node); } return $this; } }