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:
13
src/Dto/Connector/GandiProviderDto.php
Normal file
13
src/Dto/Connector/GandiProviderDto.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App\Dto\Connector;
|
||||
|
||||
use Symfony\Component\Validator\Constraints as Assert;
|
||||
|
||||
final class GandiProviderDto extends DefaultProviderDto
|
||||
{
|
||||
#[Assert\NotBlank]
|
||||
public string $token;
|
||||
|
||||
public ?string $sharingId = null;
|
||||
}
|
||||
Reference in New Issue
Block a user