Constraint
Everything under Quiote\Request\Attribute\Constraint.
Classes
Section titled “Classes”| Class | Description |
|---|---|
BooleanType | Requires the property’s value to be a boolean. |
Choice | Requires the property’s value to be one of a fixed allowlist. |
DateTimeType | Requires the property’s value to be a parseable date/time. |
Email | Requires the property’s value to be a valid email address. |
JsonType | Requires the property’s value to be a syntactically valid JSON string. |
NotBlank | Requires the property’s value to be present and non-empty. |
Range | Constrains a numeric property’s value. |
Regexp | Constrains a string property’s value against a regular expression. |
StringLength | Constrains a string property’s length. |