SeeInHtml
class SeeInHtml extends Constraint (View source)
Properties
| protected string | $content | The string under validation. |
|
| protected bool | $ordered | Indicates the values must appear in order. |
|
| protected bool | $negate | Indicates whether to negate the assertion. |
|
| protected string | $failedValue | The last value that failed to pass validation. |
Methods
__construct(string $content, $ordered = false, $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|null
normalize(string $value)
Normalize the given value.
string
toString()
Get a string representation of the object.
Details
__construct(string $content, $ordered = false, $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.
protected string|null
normalize(string $value)
Normalize the given value.
string
toString()
Get a string representation of the object.