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:
26
src/Dto/Connector/OvhProviderDto.php
Normal file
26
src/Dto/Connector/OvhProviderDto.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Dto\Connector;
|
||||
|
||||
use Symfony\Component\Validator\Constraints as Assert;
|
||||
|
||||
final class OvhProviderDto extends DefaultProviderDto
|
||||
{
|
||||
#[Assert\NotBlank]
|
||||
public string $appKey;
|
||||
|
||||
#[Assert\NotBlank]
|
||||
public string $appSecret;
|
||||
|
||||
#[Assert\NotBlank]
|
||||
public string $apiEndpoint;
|
||||
|
||||
#[Assert\NotBlank]
|
||||
public string $consumerKey;
|
||||
|
||||
#[Assert\Choice(['create-default', 'create-premium'])]
|
||||
public string $pricingMode;
|
||||
|
||||
#[Assert\NotBlank]
|
||||
public string $ovhSubsidiary;
|
||||
}
|
||||
Reference in New Issue
Block a user