| Total Complexity | 7 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class ResolverRegistry implements ResolverRegistryInterface |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var array |
||
| 9 | */ |
||
| 10 | protected $resolverMap; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * ResolverMapRegistry constructor. |
||
| 14 | * |
||
| 15 | * @param array $resolverMap |
||
| 16 | */ |
||
| 17 | public function __construct(array $resolverMap = []) |
||
| 18 | { |
||
| 19 | $this->resolverMap = $resolverMap; |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @inheritdoc |
||
| 24 | */ |
||
| 25 | public function register(string $typeName, $resolver): void |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @inheritdoc |
||
| 32 | */ |
||
| 33 | public function lookup(string $typeName, string $fieldName): ?callable |
||
| 52 |