Total Complexity | 4 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
17 | class TypeResolver |
||
18 | { |
||
19 | /** |
||
20 | * @var Schema |
||
21 | */ |
||
22 | private $schema; |
||
23 | |||
24 | public function registerSchema(Schema $schema) |
||
25 | { |
||
26 | $this->schema = $schema; |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * @param string $typeName |
||
31 | * @return Type |
||
32 | * @throws CannotMapTypeExceptionInterface |
||
33 | */ |
||
34 | public function mapNameToType(string $typeName): Type |
||
46 | } |
||
47 | } |
||
48 |