class SeeInHtml extends Constraint

Properties

protected string|null $failedValue

The last value that failed to pass validation.

Methods

__construct(string $content, bool $ordered = false, bool $negate = false)

Create a new constraint instance.

bool
matches(array $values)

Determine if the rule passes validation.

string
failureDescription(array $values)

Get the description of the failure.

string
normalize(string $value)

Normalize the given value.

string
toString()

Get a string representation of the object.

Details

at line 20
__construct(string $content, bool $ordered = false, bool $negate = false)

Create a new constraint instance.

Parameters

string $content
bool $ordered
bool $negate

at line 32
bool matches(array $values)

Determine if the rule passes validation.

Parameters

array $values

Return Value

bool

at line 82
string failureDescription(array $values)

Get the description of the failure.

Parameters

array $values

Return Value

string

at line 110
protected string normalize(string $value)

Normalize the given value.

Parameters

string $value

Return Value

string

at line 128
string toString()

Get a string representation of the object.

Return Value

string