97cd1a0ebf
This reverts commit fdf58326
35 lines
524 B
PHP
35 lines
524 B
PHP
<?php
|
|
|
|
|
|
namespace Kiri\Annotation\Route;
|
|
|
|
|
|
use Kiri\Annotation\Attribute;
|
|
|
|
/**
|
|
* Class Document
|
|
* @package Annotation\Route
|
|
*/
|
|
#[\Attribute(\Attribute::TARGET_METHOD)] class Document extends Attribute
|
|
{
|
|
|
|
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(array $request, array $response)
|
|
{
|
|
}
|
|
|
|
|
|
}
|