dcb3c628e1f80592e3e27e1650173d8104f55e5f
[GitHub/WoltLab/WCF.git] /
1 <?php
2
3 declare(strict_types=1);
4
5 namespace CuyZ\Valinor\Type\Parser\Factory\Specifications;
6
7 use CuyZ\Valinor\Type\Parser\Lexer\ClassContextLexer;
8 use CuyZ\Valinor\Type\Parser\Lexer\TypeLexer;
9
10 /** @internal */
11 final class ClassContextSpecification implements TypeParserSpecification
12 {
13 public function __construct(
14 /** @var class-string */
15 private string $className
16 ) {}
17
18 public function transform(TypeLexer $lexer): TypeLexer
19 {
20 return new ClassContextLexer($lexer, $this->className);
21 }
22 }