trait ConstraintImplementationTrait

internal  This trait is not covered by the backward compatibility promise
 

Methods

create(array $expected)

No description

static void
validateExpectations(array $expected, int $argument, int $distance = 1)

No description

makeSelector()

Creates instance of ValueSelectorInterface.

makeComparator()

Creates instance of ComparatorInterface.

Details

at line 25
static ConstraintImplementationTrait create(array $expected)

No description

Parameters

array $expected

Return Value

ConstraintImplementationTrait

Exceptions

InvalidArgumentException

at line 40
abstract static protected void validateExpectations(array $expected, int $argument, int $distance = 1)

No description

Parameters

array $expected
int $argument
int $distance

Return Value

void

Exceptions

InvalidArgumentException

at line 45
abstract static protected ValueSelectorInterface makeSelector()

Creates instance of ValueSelectorInterface.

Return Value

ValueSelectorInterface

at line 50
abstract static protected ComparatorInterface makeComparator()

Creates instance of ComparatorInterface.

Return Value

ComparatorInterface