Files
kiri-router/src/Validator/Inject/MaxLength.php
T

28 lines
398 B
PHP
Raw Normal View History

2023-04-15 23:29:27 +08:00
<?php
namespace Kiri\Inject\Validator\Inject;
#[\Attribute(\Attribute::TARGET_PROPERTY)]
class MaxLength implements ValidatorInterface
{
/**
* @param int $value
*/
public function __construct(readonly public int $value)
{
}
/**
* @param string $name
* @return bool
*/
public function dispatch(string $name): bool
{
// TODO: Implement dispatch() method.
return true;
}
}