<?php

namespace App\Dto\Input;

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

final class SubnetAddHostInput
{
    /**
     * @var ClientOutput[]
     */
    #[Assert\NotNull]
    #[Groups(['subnet:write'])]
    #[ApiProperty(
        description: 'Los clientes a añadir a la subred',
        example: []
    )]
    public ?array $clients = [];
}