CallableParameterReflection
class CallableParameterReflection implements ParameterReflection
A required parameter of a callable type the package builds, such as an expected eager-loading callback.
PHPStan's own parameter reflections are not covered by its backward compatibility promise.
Methods
Create a callable parameter reflection.
Return the parameter name.
Determine whether the parameter is optional.
Return the parameter type.
Return the parameter reference mode.
Determine whether the parameter is variadic.
Return the default value type.
Details
at line 21
__construct(string $name, Type $type)
Create a callable parameter reflection.
at line 30
string
getName()
Return the parameter name.
at line 38
bool
isOptional()
Determine whether the parameter is optional.
at line 46
Type
getType()
Return the parameter type.
at line 54
PassedByReference
passedByReference()
Return the parameter reference mode.
at line 62
bool
isVariadic()
Determine whether the parameter is variadic.
at line 70
Type|null
getDefaultValue()
Return the default value type.