Files
kiri-core/note/Route/Document.php
T

35 lines
514 B
PHP
Raw Normal View History

2020-12-18 11:35:35 +08:00
<?php
namespace Annotation\Route;
2021-03-03 18:35:04 +08:00
use Annotation\Attribute;
2021-02-22 17:44:24 +08:00
2020-12-18 11:35:35 +08:00
/**
* Class Document
* @package Annotation\Route
*/
2021-03-03 18:35:04 +08:00
#[\Attribute(\Attribute::TARGET_METHOD)] class Document extends Attribute
2020-12-18 11:35:35 +08:00
{
2020-12-18 11:55:16 +08:00
const INTEGER = 'int';
const STRING = 'string';
const BOOLEAN = 'bool';
const FLOAT = 'float';
const ALIAS = [
self::INTEGER => '整数',
self::STRING => '字符串',
self::BOOLEAN => '布尔值',
self::FLOAT => '浮点',
];
2021-08-29 04:06:49 +08:00
public function __construct(array $request, array $response)
2020-12-18 11:35:35 +08:00
{
}
2021-02-22 17:44:24 +08:00
2020-12-18 11:35:35 +08:00
}