<?php

namespace App\Dto\Input;

use ApiPlatform\Metadata\ApiProperty;
use App\Dto\Output\CommandOutput;
use Symfony\Component\Serializer\Annotation\Groups;
use Symfony\Component\Validator\Constraints as Assert;

final class CommandGroupAddCommandsInput
{
    /**
     * @var CommandOutput[]
     */
    #[Assert\NotNull]
    #[Groups(['command-group:write'])]
    #[ApiProperty(
        description: 'Los comandos a añadir al grupo',
        example: []
    )]
    public array $commands = [];
}