Files
kiri-core/Annotation/After.php
T
2020-12-14 19:03:05 +08:00

34 lines
364 B
PHP

<?php
namespace Annotation;
use Closure;
#[\Attribute(\Attribute::TARGET_METHOD)] class After
{
/**
* Middleware constructor.
* @param string|array $handler
*/
public function __construct(
private string|array $handler
)
{
}
/**
* @return array|string
*/
public function getMiddleware(): array|string
{
return $this->handler;
}
}