<?php
declare(strict_types=1);

namespace App\ApiResource;

use ApiPlatform\Metadata\ApiResource;
use ApiPlatform\Metadata\Post;
use App\State\Processor\CvPdfRequestProcessor;

#[ApiResource(
    operations: [
        new Post(
            uriTemplate: '/download-cv',
        ),
    ],
    processor: CvPdfRequestProcessor::class
)]
class CvPdfRequest
{
    protected string $altchaPayload;

    public function getAltchaPayload(): string
    {
        return $this->altchaPayload;
    }

    public function setAltchaPayload(string $altchaPayload): void
    {
        $this->altchaPayload = $altchaPayload;
    }
}