Copied!
CloneableInstantiable
Methods
public __construct(string $name)
 

Creates a property builder.

public addAttribute( $attribute)
 

Adds an attribute group.

public getNode() : PhpParser\Node
 

Returns the built class node.

public makePrivate()
 

Makes the property private.

public makeProtected()
 

Makes the property protected.

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 $attributeGroups
protected $attributes
protected $default
protected $flags
protected $name
protected $type
© 2023 Bruce Wells
Search Namespaces \ Classes
Configuration