wiki/content/20201116124823-sequentially_constraint.md

26 lines
409 B
Markdown
Raw Normal View History

2024-05-06 20:40:05 +00:00
---
2024-10-29 18:27:12 +00:00
date: 2020-11-16
2024-05-06 20:40:05 +00:00
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;
```