<?php

declare(strict_types=1);

namespace App\Application\Newsletter\SignUp;

use App\Framework\Http\ControllerRequest;
use App\Framework\Validation\Rules\Email;
use App\Framework\Validation\Rules\IsTrue;
use App\Framework\Validation\Rules\StringLength;

final readonly class NewsletterSignupRequest implements ControllerRequest
{
    #[Email]
    public string $email;

    #[StringLength(min: 3, max: 255)]
    public string $name;

    #[IsTrue]
    public bool $consent;
}
