mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-29 14:36:22 +00:00
25 lines
392 B
Markdown
25 lines
392 B
Markdown
|
---
|
||
|
id: ee2c3e75-2f2a-44c0-b24d-b15ac3fd3bb6
|
||
|
title: Sequentially Constraint
|
||
|
---
|
||
|
|
||
|
# Description
|
||
|
|
||
|
Validates a set of constraints sequentially.
|
||
|
|
||
|
# Syntax
|
||
|
|
||
|
``` php
|
||
|
/**
|
||
|
* @var string
|
||
|
*
|
||
|
* @Assert\Sequentially({
|
||
|
* @Assert\Type("string"),
|
||
|
* @Assert\Length(min="4"),
|
||
|
* @Assert\Regex("[a-z]"),
|
||
|
* @SomeCustomConstraintWithHeavyExternalCalls(),
|
||
|
* })
|
||
|
*/
|
||
|
public $someProperty;
|
||
|
```
|