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
$function
private
mixed
$function
$opts
private
mixed
$opts
$parameter
private
mixed
$parameter
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 —getClass()
No class here.
public
getClass() : mixed
Return values
mixed —getDefaultValue()
Get param default value.
public
getDefaultValue() : mixed
Return values
mixed —getName()
Get param name.
public
getName() : string
Return values
string —isArray()
Is the param an array?
public
isArray() : bool
Return values
bool —isDefaultValueAvailable()
Does the param have a default value?
public
isDefaultValueAvailable() : bool
Return values
bool —isOptional()
Is the param optional?
public
isOptional() : bool
Return values
bool —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)