<?php

declare(strict_types=1);

/*
 * Chill is a software for social workers
 *
 * For the full copyright and license information, please view
 * the LICENSE file that was distributed with this source code.
 */

namespace Chill\TicketBundle\Action\Comment;

use Symfony\Component\Validator\Constraints as Assert;
use Symfony\Component\Serializer\Annotation as Serializer;

final readonly class UpdateCommentContentCommand
{
    public function __construct(
        /**
         * The new content of the command.
         *
         * The command accept null values, but it should raise a validation error.
         */
        #[Assert\NotBlank()]
        #[Assert\NotNull]
        #[Serializer\Groups(['write'])]
        public ?string $content,
    ) {}
}
