Documentation

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

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
deprecated

since 1.3.3 and will be removed in 2.0.

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
deprecated

since 1.3.2 and will be removed in 2.0. Use getTypeHint() instead.

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
Return values
bool

Search results