Skip to content

Constraint

Everything under Quiote\Request\Attribute\Constraint.

ClassDescription
BooleanTypeRequires the property’s value to be a boolean.
ChoiceRequires the property’s value to be one of a fixed allowlist.
DateTimeTypeRequires the property’s value to be a parseable date/time.
EmailRequires the property’s value to be a valid email address.
JsonTypeRequires the property’s value to be a syntactically valid JSON string.
NotBlankRequires the property’s value to be present and non-empty.
RangeConstrains a numeric property’s value.
RegexpConstrains a string property’s value against a regular expression.
StringLengthConstrains a string property’s length.