Total Complexity | 4 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Changes | 5 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | class FixtureFactory implements FactoryInterface |
||
17 | { |
||
18 | /** |
||
19 | * @param ContainerInterface $container |
||
20 | * @param string $requestedName |
||
21 | * @return bool |
||
22 | */ |
||
23 | public function canCreate(ContainerInterface $container, $requestedName) |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * @param ContainerInterface $container |
||
30 | * @param string $requestedName |
||
31 | * @param array|null $options |
||
32 | * @return array|object |
||
33 | * @throws \Psr\Container\ContainerExceptionInterface |
||
34 | * @throws \Psr\Container\NotFoundExceptionInterface |
||
35 | */ |
||
36 | public function __invoke(ContainerInterface $container, $requestedName, array $options = null) |
||
37 | { |
||
38 | return $this->getOptions($container, 'fixtures'); |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * @param ContainerInterface $container |
||
43 | * @param $key |
||
44 | * @return array |
||
45 | * @throws \Psr\Container\ContainerExceptionInterface |
||
46 | * @throws \Psr\Container\NotFoundExceptionInterface |
||
47 | */ |
||
48 | public function getOptions(ContainerInterface $container, $key) |
||
56 | } |
||
57 | } |
||
58 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.