ArgumentNode
in package
Argument node.
Tags
Table of Contents
- $byReference : mixed
- $default : mixed
- $isVariadic : mixed
- $name : mixed
- $optional : mixed
- $typeNode : ArgumentTypeNode
- __construct() : mixed
- getDefault() : mixed
- getName() : mixed
- getTypeHint() : string|null
- getTypeNode() : ArgumentTypeNode
- hasDefault() : mixed
- isNullable() : bool
- isOptional() : mixed
- isPassedByReference() : mixed
- isVariadic() : mixed
- setAsNullable() : mixed
- setAsPassedByReference() : mixed
- setAsVariadic() : mixed
- setDefault() : mixed
- setTypeHint() : mixed
- setTypeNode() : mixed
Properties
$byReference
private
mixed
$byReference
= false
$default
private
mixed
$default
$isVariadic
private
mixed
$isVariadic
= false
$name
private
mixed
$name
$optional
private
mixed
$optional
= false
$typeNode
private
ArgumentTypeNode
$typeNode
Methods
__construct()
public
__construct(string $name) : mixed
Parameters
- $name : string
Return values
mixed —getDefault()
public
getDefault() : mixed
Return values
mixed —getName()
public
getName() : mixed
Return values
mixed —getTypeHint()
public
getTypeHint() : string|null
Tags
Return values
string|null —getTypeNode()
public
getTypeNode() : ArgumentTypeNode
Return values
ArgumentTypeNode —hasDefault()
public
hasDefault() : mixed
Return values
mixed —isNullable()
public
isNullable() : bool
Tags
Return values
bool —isOptional()
public
isOptional() : mixed
Return values
mixed —isPassedByReference()
public
isPassedByReference() : mixed
Return values
mixed —isVariadic()
public
isVariadic() : mixed
Return values
mixed —setAsNullable()
public
setAsNullable([bool $isNullable = true ]) : mixed
Parameters
- $isNullable : bool = true
Tags
Return values
mixed —setAsPassedByReference()
public
setAsPassedByReference([mixed $byReference = true ]) : mixed
Parameters
- $byReference : mixed = true
Return values
mixed —setAsVariadic()
public
setAsVariadic([mixed $isVariadic = true ]) : mixed
Parameters
- $isVariadic : mixed = true
Return values
mixed —setDefault()
public
setDefault([mixed $default = null ]) : mixed
Parameters
- $default : mixed = null
Return values
mixed —setTypeHint()
public
setTypeHint([string|null $typeHint = null ]) : mixed
Parameters
- $typeHint : string|null = null
Tags
Return values
mixed —setTypeNode()
public
setTypeNode(ArgumentTypeNode $typeNode) : mixed
Parameters
- $typeNode : ArgumentTypeNode