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.

Parameters

ParameterReflection $parameter
ClassReflection $modelClass

at line 29
string getName()

Return the parameter name.

Return Value

string

at line 37
bool isOptional()

Determine whether the parameter is optional.

Return Value

bool

at line 45
Type getType()

Return the parameter type.

Return Value

Type

at line 53
PassedByReference passedByReference()

Return the parameter reference mode.

Return Value

PassedByReference

at line 61
bool isVariadic()

Determine whether the parameter is variadic.

Return Value

bool

at line 69
Type|null getDefaultValue()

Return the default value type.

Return Value

Type|null