Property | Type | Description | |
---|---|---|---|
$attributes | |||
$default | |||
$flags | |||
$name |
Method | Description | |
---|---|---|
__construct ( string $name ) | Creates a property builder. | |
getNode ( ) : |
Returns the built class node. | |
makePrivate ( ) | Makes the property private. | |
makeProtected ( ) | Makes the property protected. | |
makePublic ( ) | Makes the property public. | |
makeStatic ( ) | Makes the property static. | |
setDefault ( mixed $value ) | Sets default value for the property. | |
setDocComment ( PhpParser\Comment\Doc | string $docComment ) | Sets doc comment for the property. |
public __construct ( string $name ) | ||
$name | string | Name of the property |
public getNode ( ) : |
||
return | The built property node |
public setDefault ( mixed $value ) | ||
$value | mixed | Default value to use |
public setDocComment ( PhpParser\Comment\Doc | string $docComment ) | ||
$docComment | PhpParser\Comment\Doc | string | Doc comment to set |