interface MethodSpecInterface

internal  This interface is not covered by the backward compatibility promise
 

Specifies requirements on method including its name and modifiers.

Methods

string
getName()

Returns the name of the method being specified.

bool|null
getStatic()

Returns specification of static modifier.

int|null
getAccess()

Returns specification of methods visibility.

bool|null
getAbstract()

Returns specification of abstract modifier.

bool|null
getFinal()

Returns specification of final modifier.

bool
matches(ReflectionMethod $method)

Returns true, if $method fulfills all requirements.

string
toString()

Method specification in human readable form.

Details

at line 25
string getName()

Returns the name of the method being specified.

Return Value

string

at line 32
bool|null getStatic()

Returns specification of static modifier.

Return Value

bool|null

true to match only static methods, false for non-static, null for any

at line 42
int|null getAccess()

Returns specification of methods visibility.

Return Value

int|null

a bit combination of \ReflectionMethod::IS_PUBLIC, \ReflectionMethod::IS_PROTECTED and \ReflectionMethod::IS_PRIVATE specifying which of these visibility modifiers match the specification, or null if anything is accepted

at line 49
bool|null getAbstract()

Returns specification of abstract modifier.

Return Value

bool|null

true to match only abstract methods, false for non-abstract, null for any

at line 56
bool|null getFinal()

Returns specification of final modifier.

Return Value

bool|null

true to match only final methods, false for non-final, null for any

at line 61
bool matches(ReflectionMethod $method)

Returns true, if $method fulfills all requirements.

Parameters

ReflectionMethod $method

Return Value

bool

at line 66
string toString()

Method specification in human readable form.

Return Value

string