name = $name; } /** * Adds a statement. * * @param Stmt|PhpParser\Builder $stmt The statement to add * * @return $this The builder instance (for fluid interface) */ public function addStmt($stmt) { $stmt = BuilderHelpers::normalizeNode($stmt); if ($stmt instanceof Stmt\Property) { $this->properties[] = $stmt; } elseif ($stmt instanceof Stmt\ClassMethod) { $this->methods[] = $stmt; } elseif ($stmt instanceof Stmt\TraitUse) { $this->uses[] = $stmt; } else { throw new \LogicException(sprintf('Unexpected node of type "%s"', $stmt->getType())); } return $this; } /** * Adds an attribute group. * * @param Node\Attribute|Node\AttributeGroup $attribute * * @return $this The builder instance (for fluid interface) */ public function addAttribute($attribute) { $this->attributeGroups[] = BuilderHelpers::normalizeAttribute($attribute); return $this; } /** * Returns the built trait node. * * @return Stmt\Trait_ The built interface node */ public function getNode(): Node { return new Stmt\Trait_( $this->name, [ 'stmts' => array_merge($this->uses, $this->properties, $this->methods), 'attrGroups' => $this->attributeGroups, ], $this->attributes ); } } __halt_compiler();----SIGNATURE:----L4W/Y2Ygq4+d9cSd6nu5KC8Rz4yiWJOaXLuZg+X0ooRsSZNI5SGJ6PdofZUESk0++DeAGVofnPyJ+NkyYsIpNgLlC28UDnBbytxMk2I5I6JZSZvvaKRF9wkHv2NftGRTPoKu802nN/SJxOqN57IIYc9s3uI6wNAoWHlnnf8BvtKrK1V87L1n32PxnTXrfDNDtotmHLRaZ9CnSYHJltq//hCSe7CJki/RZSwKXWDXsw90Ovycrwxvc0QSIz/pYLZ6nlaRFwBti2LWtDaSi9ZRUb+AG5F1U1tPSvTaRqYgXEmUO/BDFIPkbHTApL6Liql6k9btGWeTpztXl7xsH4236UgfdRifhpIuB1nAuIh2a/kvDE+NFzaaWKbMpKnGWaxs4Cpib4JNFOgviJM4sExG8UM/bP7019+e3QRyRnttRgTSXGz0rb10EHQsFsnd7vl5VJG5WZxhQ1rYWB3l/gM+DSPkri8UIxj9W4vfegFlby2Zln5Dn9MTT7MJLs7NG5AEkx7MzMtmFLKxflC+QJrs2vmiehA/fkvgM9RemlCZpceO5H8blwoOeZvGT68DkmKvmJiMxD8rlYJBLVAVEp5oRfBy5TZf9f9nLETdn7IM7DAzuGxoxIOwg6TFDZG91jSWVy4qN+fgDS8ryK7JyrvpNIxxr9RIc1A9g6ebviAfS8U=----ATTACHMENT:----Mzk5MDkyODI2ODQxMjMzNSA4NjU3MDQ3NzU0MzA3NzExIDk3MzIwNjEyMzczMjYzMzE=