<?php

declare(strict_types=1);

namespace App\Framework\OpenApi\Attributes;

use Attribute;

/**
 * Marks a controller method as an API endpoint for OpenAPI documentation
 */
#[Attribute(Attribute::TARGET_METHOD)]
final readonly class ApiEndpoint
{
    public function __construct(
        public string $summary,
        public string $description = '',
        public array $tags = [],
        public bool $deprecated = false,
        public ?string $operationId = null,
    ) {
    }
}
