for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Yiisoft\Router\HydratorAttribute;
use Attribute;
use Yiisoft\Hydrator\ParameterAttributeInterface;
#[Attribute(Attribute::TARGET_PROPERTY | Attribute::TARGET_PARAMETER | Attribute::IS_REPEATABLE)]
final class Route implements ParameterAttributeInterface
{
public function __construct(
private ?string $name = null
) {
}
public function getName(): ?string
return $this->name;
public function getResolver(): string
return RouteResolver::class;