function Class_::getNode
Returns the built class node.
Return value
Stmt\Class_ The built class node
Overrides Builder::getNode
File
-
vendor/
nikic/ php-parser/ lib/ PhpParser/ Builder/ Class_.php, line 142
Class
Namespace
PhpParser\BuilderCode
public function getNode() : PhpParser\Node {
return new Stmt\Class_($this->name, [
'flags' => $this->flags,
'extends' => $this->extends,
'implements' => $this->implements,
'stmts' => array_merge($this->uses, $this->constants, $this->properties, $this->methods),
'attrGroups' => $this->attributeGroups,
], $this->attributes);
}