Total Complexity | 4 |
Total Lines | 48 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
19 | final class Registry implements LinkerInterface |
||
20 | { |
||
21 | /** |
||
22 | * @var array|callable[] |
||
23 | */ |
||
24 | private array $loaders = []; |
||
25 | |||
26 | /** |
||
27 | * @param string $type |
||
28 | * @param SchemaInterface $context |
||
29 | * @return void |
||
30 | * @throws \LogicException |
||
31 | */ |
||
32 | public function fetch(string $type, SchemaInterface $context) |
||
33 | { |
||
34 | throw new \LogicException('Not implemented yet'); |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * {@inheritDoc} |
||
39 | */ |
||
40 | public function getAutoloaders(): iterable |
||
41 | { |
||
42 | return $this->loaders; |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * @param callable $loader |
||
47 | * @return $this |
||
48 | */ |
||
49 | public function autoload(callable $loader): self |
||
54 | } |
||
55 | |||
56 | /** |
||
57 | * @param callable $loader |
||
58 | * @return $this |
||
59 | */ |
||
60 | public function cancelAutoload(callable $loader): self |
||
67 | } |
||
68 | } |
||
69 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.