This commit is contained in:
2020-12-18 11:55:16 +08:00
parent f437b21fe2
commit bc05d3de16
+13
View File
@@ -11,6 +11,19 @@ namespace Annotation\Route;
#[\Attribute(\Attribute::TARGET_METHOD)] class Document
{
const INTEGER = 'int';
const STRING = 'string';
const BOOLEAN = 'bool';
const FLOAT = 'float';
const ALIAS = [
self::INTEGER => '整数',
self::STRING => '字符串',
self::BOOLEAN => '布尔值',
self::FLOAT => '浮点',
];
public function __construct(
public array $docs
)