Copied!
Cloneable Instantiable
Methods
public __construct ( string $name )
 

Creates a property builder.

public getNode () : PhpParser\Node
 

Returns the built class node.

  • return Stmt\Property The built property node
public makePrivate ()
 

Makes the property private.

  • return $this The builder instance (for fluid interface)
public makeProtected ()
 

Makes the property protected.

  • return $this The builder instance (for fluid interface)
public makePublic ()
 

Makes the property public.

  • return $this The builder instance (for fluid interface)
public makeStatic ()
 

Makes the property static.

  • return $this The builder instance (for fluid interface)
public setDefault ( $value )
 

Sets default value for the property.

  • return $this The builder instance (for fluid interface)
public setDocComment ( $docComment )
 

Sets doc comment for the property.

  • return $this The builder instance (for fluid interface)
public setType ( $type )
 

Sets the property type for PHP 7.4+.

  • return $this
Properties
protected $attributes
protected $default
protected $flags
protected $name
protected $type
 
  • var null | Identifier | Name | NullableType
© 2020 Bruce Wells
Search Namespaces \ Classes
Configuration Numbers (0-9.) only