Argument
in package
Descriptor representing a single Argument of a method or function.
Table of Contents
- $byReference : bool
- $default : string|null
- $isVariadic : bool
- $name : string
- $type : Type
- __construct() : mixed
- Initializes the object.
- getDefault() : string|null
- getName() : string
- Returns the name of this argument.
- getType() : Type|null
- isByReference() : bool
- isVariadic() : bool
Properties
$byReference
private
bool
$byReference
whether the argument passes the parameter by reference instead of by value
$default
private
string|null
$default
the default value for an argument or null if none is provided
$isVariadic
private
bool
$isVariadic
Determines if this Argument represents a variadic argument
$name
private
string
$name
name of the Argument
$type
private
Type
$type
a normalized type that should be in this Argument
Methods
__construct()
Initializes the object.
public
__construct(string $name[, Type|null $type = null ][, string|null $default = null ][, bool $byReference = false ][, bool $isVariadic = false ]) : mixed
Parameters
- $name : string
- $type : Type|null = null
- $default : string|null = null
- $byReference : bool = false
- $isVariadic : bool = false
Return values
mixed —getDefault()
public
getDefault() : string|null
Return values
string|null —getName()
Returns the name of this argument.
public
getName() : string
Return values
string —getType()
public
getType() : Type|null
Return values
Type|null —isByReference()
public
isByReference() : bool
Return values
bool —isVariadic()
public
isVariadic() : bool