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

Creates a parameter builder.

public getNode () : PhpParser\Node
 

Returns the built parameter node.

  • return Node\Param The built parameter node
public makeByRef ()
 

Make the parameter accept the value by reference.

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

Make the parameter variadic

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

Sets default value for the parameter.

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

Sets type for the parameter.

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

Sets type for the parameter.

  • return $this The builder instance (for fluid interface)
  • deprecated Use setType() instead
Properties
protected $byRef
protected $default
protected $name
protected $type
 
  • var Node\Identifier | Node\Name | Node\NullableType | null
protected $variadic
© 2020 Bruce Wells
Search Namespaces \ Classes
Configuration Numbers (0-9.) only