mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
refactor: add DTO class to validate schema
This commit is contained in:
17
src/Dto/Connector/DefaultProviderDto.php
Normal file
17
src/Dto/Connector/DefaultProviderDto.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace App\Dto\Connector;
|
||||
|
||||
use Symfony\Component\Validator\Constraints as Assert;
|
||||
|
||||
class DefaultProviderDto
|
||||
{
|
||||
#[Assert\IsTrue]
|
||||
public bool $ownerLegalAge;
|
||||
|
||||
#[Assert\IsTrue]
|
||||
public bool $acceptConditions;
|
||||
|
||||
#[Assert\IsTrue]
|
||||
public bool $waiveRetractationPeriod;
|
||||
}
|
||||
Reference in New Issue
Block a user