CloneableInstantiable
Methods |
public __construct( $name, $value) Creates a class constant builder
|
public addAttribute( $attribute) Adds an attribute group.
|
public addConst( $name, $value) Add another constant to const group
|
public getNode() : PhpParser Returns the built class node.
|
public makeFinal() Makes the constant final.
|
public makePrivate() Makes the constant private.
|
public makeProtected() Makes the constant protected.
|
public makePublic() Makes the constant public.
|
public setDocComment( $docComment) Sets doc comment for the constant.
|
public setType( $type) Sets the constant type.
|
Properties |
protected array $attributeGroups = []
|
protected array $attributes = []
|
protected array $constants = []
|
protected int $flags = 0 |
protected ?PhpParser
|