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

29 lines
393 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 Max 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;
}
}