This commit is contained in:
as2252258@163.com
2021-03-24 01:01:00 +08:00
parent 305d250195
commit ae94134a78
-37
View File
@@ -1,37 +0,0 @@
<?php
namespace Annotation;
use Exception;
use validator\Validator;
/**
* Class RequestValidator
* @package Annotation
*/
#[\Attribute(\Attribute::TARGET_METHOD)] class RequestValidator extends Attribute
{
/**
* RequestValidator constructor.
* @param array $validators
* @throws Exception
*/
public function __construct(public array $validators)
{
}
/**
* @param array $handler
* @return bool
*/
public function execute(array $handler): bool
{
return true;
}
}