mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
feat: add assert constraints
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user