1 | <?php |
||
7 | class ResourcesResolver |
||
8 | { |
||
9 | /** |
||
10 | * @var array |
||
11 | */ |
||
12 | protected static $resolvers = []; |
||
13 | |||
14 | /** |
||
15 | * @param string $model |
||
16 | * @param string $shortKey |
||
17 | * @param callable $resolver |
||
18 | */ |
||
19 | public static function registerResolver(string $model, string $shortKey, callable $resolver) |
||
26 | |||
27 | /** |
||
28 | * @param string $resource |
||
29 | * @param array $ids |
||
30 | * |
||
31 | * @return mixed |
||
32 | */ |
||
33 | public function resolve(string $resource, array $ids) |
||
47 | } |
||
48 |