改名
This commit is contained in:
@@ -0,0 +1,23 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
namespace Annotation\Route;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class Interceptor
|
||||||
|
* @package Annotation\Route
|
||||||
|
*/
|
||||||
|
#[\Attribute(\Attribute::TARGET_METHOD)] class After
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Interceptor constructor.
|
||||||
|
* @param string|array $after
|
||||||
|
*/
|
||||||
|
public function __construct(public string|array $after)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
namespace Annotation\Route;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class Interceptor
|
||||||
|
* @package Annotation\Route
|
||||||
|
*/
|
||||||
|
#[\Attribute(\Attribute::TARGET_METHOD)] class Interceptor
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Interceptor constructor.
|
||||||
|
* @param string|array $interceptor
|
||||||
|
*/
|
||||||
|
public function __construct(public string|array $interceptor)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
namespace Annotation\Route;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class Limits
|
||||||
|
* @package Annotation\Route
|
||||||
|
*/
|
||||||
|
#[\Attribute(\Attribute::TARGET_METHOD)] class Limits
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Limits constructor.
|
||||||
|
* @param string|array $limits
|
||||||
|
*/
|
||||||
|
public function __construct(public string|array $limits)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
namespace Annotation\Route;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class Middleware
|
||||||
|
* @package Annotation\Route
|
||||||
|
*/
|
||||||
|
#[\Attribute(\Attribute::TARGET_METHOD)] class Middleware
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Interceptor constructor.
|
||||||
|
* @param string|array $middleware
|
||||||
|
*/
|
||||||
|
public function __construct(public string|array $middleware)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user