| 1 | <?php |
||
| 11 | class CallableFetcher implements FetcherInterface |
||
| 12 | { |
||
| 13 | |||
| 14 | /** @var callable */ |
||
| 15 | protected $resolveNodeCallable; |
||
| 16 | |||
| 17 | /** @var callable */ |
||
| 18 | protected $resolveTypeCallable; |
||
| 19 | |||
| 20 | 3 | public function __construct(callable $resolveNode, callable $resolveType) |
|
| 25 | |||
| 26 | /** |
||
| 27 | * @inheritdoc |
||
| 28 | */ |
||
| 29 | 1 | public function resolveNode($type, $id) |
|
| 35 | |||
| 36 | /** |
||
| 37 | * @inheritdoc |
||
| 38 | */ |
||
| 39 | 2 | public function resolveType($object) |
|
| 45 | } |