| Total Complexity | 3 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class ArrayResolver implements ResolverInterface |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var callable[] |
||
| 9 | */ |
||
| 10 | protected $resolvers; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * MapResolver constructor. |
||
| 14 | * @param callable[] $resolvers |
||
| 15 | */ |
||
| 16 | public function __construct(array $resolvers) |
||
| 19 | } |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param string $fieldName |
||
| 23 | * @param callable $resolver |
||
| 24 | */ |
||
| 25 | public function addResolver(string $fieldName, callable $resolver) |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param string $fieldName |
||
| 32 | * @return callable|null |
||
| 33 | */ |
||
| 34 | public function getResolveMethod(string $fieldName): ?callable |
||
| 39 |