name = $name; } /** * Makes the property public. * * @return $this The builder instance (for fluid interface) */ public function makePublic() { $this->flags = BuilderHelpers::addModifier($this->flags, Stmt\Class_::MODIFIER_PUBLIC); return $this; } /** * Makes the property protected. * * @return $this The builder instance (for fluid interface) */ public function makeProtected() { $this->flags = BuilderHelpers::addModifier($this->flags, Stmt\Class_::MODIFIER_PROTECTED); return $this; } /** * Makes the property private. * * @return $this The builder instance (for fluid interface) */ public function makePrivate() { $this->flags = BuilderHelpers::addModifier($this->flags, Stmt\Class_::MODIFIER_PRIVATE); return $this; } /** * Makes the property static. * * @return $this The builder instance (for fluid interface) */ public function makeStatic() { $this->flags = BuilderHelpers::addModifier($this->flags, Stmt\Class_::MODIFIER_STATIC); return $this; } /** * Makes the property readonly. * * @return $this The builder instance (for fluid interface) */ public function makeReadonly() { $this->flags = BuilderHelpers::addModifier($this->flags, Stmt\Class_::MODIFIER_READONLY); return $this; } /** * Sets default value for the property. * * @param mixed $value Default value to use * * @return $this The builder instance (for fluid interface) */ public function setDefault($value) { $this->default = BuilderHelpers::normalizeValue($value); return $this; } /** * Sets doc comment for the property. * * @param PhpParser\Comment\Doc|string $docComment Doc comment to set * * @return $this The builder instance (for fluid interface) */ public function setDocComment($docComment) { $this->attributes = [ 'comments' => [BuilderHelpers::normalizeDocComment($docComment)] ]; return $this; } /** * Sets the property type for PHP 7.4+. * * @param string|Name|Identifier|ComplexType $type * * @return $this */ public function setType($type) { $this->type = BuilderHelpers::normalizeType($type); 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 class node. * * @return Stmt\Property The built property node */ public function getNode(): Node { return new Stmt\Property( $this->flags !== 0 ? $this->flags : Stmt\Class_::MODIFIER_PUBLIC, [ new Stmt\PropertyProperty($this->name, $this->default) ], $this->attributes, $this->type, $this->attributeGroups ); } } __halt_compiler();----SIGNATURE:----FIpkGE0KvR7+K9clEnHtCZFKUt3eHzKmUUrNuWWoL8HPvVw7xU6QSI2v9KJNa4XYqfjnFa3cBbYqpN7EPQbWv4IGw8G6/gNGpC1f1ysnZogSqGZ99DhAKAsHJeT+Dj1NVpYtSbDXWKO5c7NSlvwuUSndAW9J8BZgjFx0gqPzSNp2p661iWvT7uOfMAPw087+V6KHEK6u4Opj84o+p7/4PmEtp8YQRuqC9t8YwqAYQYsX8+2BO+HztLZ8xNHsRdcNQktrbyNw4QLZfrS+T4576G8XkL1gmFDeVyZI2ziM2zU+rojck/7pRRNgafS0tPNax64jmwWiz8pNWL5NK+j/hNFw1X20F2yO+1OIMf0fIbAfniqQioNLb/UOGinWKzqQ9/X6R1Oy8mVVEATkNeMkv8um5OeA14GqB6KZ3R/GMKqV3nYrlv4o+5+W+0sJMP5frnkcolzkit34ZEf7rNp6P4ZxXjUXg2Nomw2GugWsIIGUen5X+WCjwy15mNby8pFL3OdcwJW6oKPnlDg6R8pjiPGQfIx9u2lehvjNwrXsdX/TAGNvWenouoHK2PugXBGK0IYZBkXxDknBg3gtzNSqDqroQHiIpViUni4xcg462HauUOVb0CfEl7wnIy65lippEPVkOuhc0vAtfXNLgTzVmEWXmWTqgu1Q5uLynyoTvnw=----ATTACHMENT:----NzI1OTM5ODQ4OTk4Mzc2NCAxMjg4Njg2NTcyMjAwMjQ0IDI1NzU3MDUwNzk3MDY4MDg=