Method.php 603 字节
<?php

namespace Lackoxygen\ShowDocGeneration\Annotations;

use Doctrine\Common\Annotations\Annotation\Enum;

/**
 * @Annotation
 * @Target({"METHOD"})
 * @Attributes({
@Attribute("method", type = "string"),
 * })
 */
final class Method extends Annotation
{
    public const METHOD_GET = 'GET';
    public const METHOD_POST = 'POST';
    public const METHOD_PUT = 'PUT';
    public const METHOD_PATCH = 'PATCH';
    public const METHOD_DELETE = 'DELETE';

    /**
     * @Required()
     * @Enum({"GET", "POST", "PUT", "PATCH", "DELETE"})
     * @var string
     */
    protected string $method = '';
}