feat: add assert constraints

This commit is contained in:
Maël Gangloff
2025-02-23 13:35:54 +01:00
parent 42cbf5e416
commit a481f851da
4 changed files with 22 additions and 0 deletions

View File

@@ -6,12 +6,15 @@ use Symfony\Component\Validator\Constraints as Assert;
class DefaultProviderDto
{
#[Assert\NotBlank]
#[Assert\IsTrue]
public bool $ownerLegalAge;
#[Assert\NotBlank]
#[Assert\IsTrue]
public bool $acceptConditions;
#[Assert\NotBlank]
#[Assert\IsTrue]
public bool $waiveRetractationPeriod;
}