3 declare(strict_types=1);
5 namespace CuyZ\Valinor\Type\Parser\Factory\Specifications;
7 use CuyZ\Valinor\Type\Parser\Lexer\ClassContextLexer;
8 use CuyZ\Valinor\Type\Parser\Lexer\TypeLexer;
11 final class ClassContextSpecification implements TypeParserSpecification
13 public function __construct(
14 /** @var class-string */
15 private string $className
18 public function transform(TypeLexer $lexer): TypeLexer
20 return new ClassContextLexer($lexer, $this->className);