multi-store/vendor/hg/apidoc/src/annotation/ResponseErrorMd.php

36 lines
706 B
PHP
Raw Normal View History

2024-06-03 11:03:08 +08:00
<?php
namespace hg\apidoc\annotation;
use Attribute;
use Doctrine\Common\Annotations\Annotation;
use hg\apidoc\utils\AbstractAnnotation;
/**
* 异常响应体的Markdown内容
* @package hg\apidoc\annotation
* @Annotation
* @Target({"METHOD"})
*/
#[Attribute(Attribute::TARGET_METHOD | \Attribute::IS_REPEATABLE)]
class ResponseErrorMd extends AbstractAnnotation
{
/**
* 引入md文件
* @var string
*/
public $ref;
/**
* @param string $name Markdown文档内容
* @param string $ref 引入md文件路径
*/
public function __construct(
$name = '',
string $ref = ''
)
{
parent::__construct(...func_get_args());
}
}