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

35 lines
496 B
PHP
Raw Normal View History

2020-12-18 11:35:35 +08:00
<?php
2021-11-30 15:10:01 +08:00
namespace Note\Route;
2020-12-18 11:35:35 +08:00
2021-11-30 15:10:01 +08:00
use Note\Attribute;
2021-02-22 17:44:24 +08:00
2020-12-18 11:35:35 +08:00
/**
* Class Document
2021-11-30 15:10:01 +08:00
* @package Note\Route
2020-12-18 11:35:35 +08:00
*/
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
}