18 lines
440 B
PHP
18 lines
440 B
PHP
<?php
|
|
|
|
namespace App\Dto\Input;
|
|
|
|
use ApiPlatform\Metadata\ApiProperty;
|
|
use Symfony\Component\Serializer\Annotation\Groups;
|
|
use Symfony\Component\Validator\Constraints as Assert;
|
|
|
|
class ConvertImageToVirtualInput
|
|
{
|
|
#[Assert\NotNull]
|
|
#[Groups(['image-image-repository:write'])]
|
|
#[ApiProperty(
|
|
description: 'La extensión del archivo virtual a generar',
|
|
example: 'qcow2'
|
|
)]
|
|
public ?string $extension = '';
|
|
} |