PHP Class PhpParser\Node\Param

Inheritance: extends PhpParser\NodeAbstract
Show file Open project: nikic/PHP-Parser

Public Properties

Property Type Description
$byRef Whether parameter is passed by reference
$default Default value
$name Name
$type Typehint
$variadic Whether this is a variadic argument

Public Methods

Method Description
__construct ( string $name, Expr $default = null, null | string | Name | NullableType $type = null, boolean $byRef = false, boolean $variadic = false, array $attributes = [] ) Constructs a parameter node.
getSubNodeNames ( )

Method Details

__construct() public method

Constructs a parameter node.
public __construct ( string $name, Expr $default = null, null | string | Name | NullableType $type = null, boolean $byRef = false, boolean $variadic = false, array $attributes = [] )
$name string Name
$default Expr Default value
$type null | string | Name | NullableType Typehint
$byRef boolean Whether is passed by reference
$variadic boolean Whether this is a variadic argument
$attributes array Additional attributes

getSubNodeNames() public method

public getSubNodeNames ( )

Property Details

$byRef public property

Whether parameter is passed by reference
public $byRef

$default public property

Default value
public $default

$name public property

Name
public $name

$type public property

Typehint
public $type

$variadic public property

Whether this is a variadic argument
public $variadic