ModelScopeParameterReflection
class ModelScopeParameterReflection implements ParameterReflection
Preserve model-relative parameter types on an exposed scope method.
Methods
__construct(ParameterReflection $parameter, ClassReflection $modelClass)
Create a model scope parameter reflection.
string
getName()
Return the parameter name.
bool
isOptional()
Determine whether the parameter is optional.
Type
getType()
Return the parameter type.
PassedByReference
passedByReference()
Return the parameter reference mode.
bool
isVariadic()
Determine whether the parameter is variadic.
Type|null
getDefaultValue()
Return the default value type.
Details
at line 20
__construct(ParameterReflection $parameter, ClassReflection $modelClass)
Create a model scope parameter reflection.
at line 29
string
getName()
Return the parameter name.
at line 37
bool
isOptional()
Determine whether the parameter is optional.
at line 45
Type
getType()
Return the parameter type.
at line 53
PassedByReference
passedByReference()
Return the parameter reference mode.
at line 61
bool
isVariadic()
Determine whether the parameter is variadic.
at line 69
Type|null
getDefaultValue()
Return the default value type.