From bc05d3de16953a0d1ca1861fbef578aca940c213 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 18 Dec 2020 11:55:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Annotation/Route/Document.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Annotation/Route/Document.php b/Annotation/Route/Document.php index 921b6e6e..e1eef36d 100644 --- a/Annotation/Route/Document.php +++ b/Annotation/Route/Document.php @@ -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 )