23 lines
491 B
PHP
23 lines
491 B
PHP
<?php
|
|
|
|
namespace App\DTO\Request;
|
|
|
|
use Symfony\Component\Validator\Constraints as Assert;
|
|
|
|
class UpdateSchemaRequest
|
|
{
|
|
use SchemaValidationTrait;
|
|
|
|
#[Assert\NotBlank]
|
|
#[Assert\Length(max: 255)]
|
|
public ?string $name = null;
|
|
|
|
public ?int $categoryId = null;
|
|
public bool $hasCategoryId = false;
|
|
public ?string $status = null;
|
|
public ?string $type = null;
|
|
public ?string $startDate = null;
|
|
public ?string $endDate = null;
|
|
public ?array $days = null;
|
|
}
|