Parameter
in package
Table of Contents
- $parameterCounter : int
- $rfp : ReflectionParameter
- __call() : mixed
- __construct() : mixed
- getClass() : ReflectionClass|null
- Get the reflection class for the parameter type, if it exists.
- getName() : string
- Get the name of the parameter.
- getTypeHint() : string|null
- Get the string representation for the paramater type.
- getTypeHintAsString() : string
- Get the string representation for the paramater type.
- isArray() : bool
- Determine if the parameter is an array.
- isVariadic() : bool
- Determine if the parameter is variadic.
Properties
$parameterCounter
private
static int
$parameterCounter
= 0
$rfp
private
ReflectionParameter
$rfp
Methods
__call()
public
__call(mixed $method, array<string|int, mixed> $args) : mixed
Parameters
- $method : mixed
- $args : array<string|int, mixed>
Return values
mixed —__construct()
public
__construct(ReflectionParameter $rfp) : mixed
Parameters
- $rfp : ReflectionParameter
Return values
mixed —getClass()
Get the reflection class for the parameter type, if it exists.
public
getClass() : ReflectionClass|null
This will be null if there was no type, or it was a scalar or a union.
Tags
Return values
ReflectionClass|null —getName()
Get the name of the parameter.
public
getName() : string
Some internal classes have funny looking definitions!
Return values
string —getTypeHint()
Get the string representation for the paramater type.
public
getTypeHint() : string|null
Return values
string|null —getTypeHintAsString()
Get the string representation for the paramater type.
public
getTypeHintAsString() : string
Tags
Return values
string —isArray()
Determine if the parameter is an array.
public
isArray() : bool
Return values
bool —isVariadic()
Determine if the parameter is variadic.
public
isVariadic() : bool