Cloneable
Instantiable
Methods |
public
__construct
(
string
$name
) Creates a property builder. |
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
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 $attributes |
protected $default |
protected $flags |
protected $name |
protected
$type
|