CloneableInstantiable
| Methods |
| public __construct(string $name) Creates a property builder.
|
| public addAttribute( $attribute) Adds an attribute group.
|
| public addHook(PhpParser Adds a property hook.
|
| public getNode() : PhpParser Returns the built class node.
|
| public makeAbstract() Makes the property abstract. Requires at least one property hook to be specified as well.
|
| public makeFinal() Makes the property final.
|
| public makePrivate() Makes the property private.
|
| public makePrivateSet() Gives the property private(set) visibility.
|
| public makeProtected() Makes the property protected.
|
| public makeProtectedSet() Gives the property protected(set) visibility.
|
| public makePublic() Makes the property public.
|
| public makeReadonly() Makes the property readonly.
|
| public makeStatic() Makes the property static.
|
| public setDefault( $value) Sets default value for the property.
|
| public setDocComment( $docComment) Sets doc comment for the property.
|
| public setType( $type) Sets the property type for PHP 7.4+.
|
| Properties |
protected array $attributeGroups = []
|
protected array $attributes = []
|
| protected ?PhpParser |
| protected int $flags = 0 |
protected array $hooks = []
|
| protected string $name |
protected ?PhpParser
|