1 | <?php |
||
9 | abstract class SingletonResolver implements ResolverInterface |
||
10 | { |
||
11 | /** |
||
12 | * @var \Closure |
||
13 | */ |
||
14 | protected $callback; |
||
15 | |||
16 | /** |
||
17 | * {@inheritdoc} |
||
18 | */ |
||
19 | public function getFunction(array $config, Field $field) |
||
29 | |||
30 | /** |
||
31 | * @param ResolveInfo $info |
||
32 | * @return array |
||
33 | */ |
||
34 | protected function getResolveConfig(ResolveInfo $info) |
||
44 | |||
45 | /** |
||
46 | * @param array $config |
||
47 | * @param Field $field |
||
48 | * @return mixed |
||
49 | */ |
||
50 | abstract protected function createFunction(array $config, Field $field); |
||
51 | } |
||
52 |