final class HasMethod extends Constraint

Constraint that accepts objects, classes, traits and interfaces having given method.

Methods

__construct(MethodSpecInterface $methodSpec)

No description

static HasMethod
create(string $methodSpecString)

No description

string
toString()

Returns a string representation of the constraint.

bool
matches(mixed $other)

No description

Details

at line 29
__construct(MethodSpecInterface $methodSpec)

No description

Parameters

MethodSpecInterface $methodSpec

at line 37
static HasMethod create(string $methodSpecString)

No description

Parameters

string $methodSpecString

Return Value

HasMethod

Exceptions

InvalidArgumentException

at line 55
string toString()

Returns a string representation of the constraint.

Return Value

string

at line 65
final protected bool matches(mixed $other)

No description

Parameters

mixed $other

Return Value

bool