31 lines
533 B
PHP
Raw Normal View History

2020-03-25 18:35:16 +08:00
<?php
namespace ZM\Annotation\Http;
use Doctrine\Common\Annotations\Annotation\Required;
use Doctrine\Common\Annotations\Annotation\Target;
use ZM\Annotation\AnnotationBase;
2020-08-31 10:11:06 +08:00
use ZM\Annotation\Interfaces\ErgodicAnnotation;
2020-03-25 18:35:16 +08:00
/**
* Class Middleware
* @package ZM\Annotation\Http
* @Annotation
* @Target("ALL")
2020-03-25 18:35:16 +08:00
*/
2020-08-31 10:11:06 +08:00
class Middleware extends AnnotationBase implements ErgodicAnnotation
2020-03-25 18:35:16 +08:00
{
/**
* @var string
* @Required()
*/
public $middleware;
2021-07-04 15:45:30 +08:00
/**
* @var string[]
*/
public $params = [];
}