Documentation

ReflectionLanguageConstructParameter extends ReflectionParameter
in package

A fake ReflectionParameter but for language construct parameters.

It stubs out all the important bits and returns whatever was passed in $opts.

Table of Contents

$function  : mixed
$opts  : mixed
$parameter  : mixed
__construct()  : mixed
getClass()  : mixed
No class here.
getDefaultValue()  : mixed
Get param default value.
getName()  : string
Get param name.
isArray()  : bool
Is the param an array?
isDefaultValueAvailable()  : bool
Does the param have a default value?
isOptional()  : bool
Is the param optional?
isPassedByReference()  : bool
Is the param passed by reference?

Properties

Methods

__construct()

public __construct(mixed $function, mixed $parameter, array<string|int, mixed> $opts) : mixed
Parameters
$function : mixed
$parameter : mixed
$opts : array<string|int, mixed>
Return values
mixed

isPassedByReference()

Is the param passed by reference?

public isPassedByReference() : bool

(I don't think this is true for anything we need to fake a param for)

Return values
bool

Search results