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 21
__construct(ParameterReflection $parameter, ClassReflection $modelClass)
Create a model scope 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 63
bool
isVariadic()
Determine whether the parameter is variadic.
at line 71
Type|null
getDefaultValue()
Return the default value type.