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