| Total Complexity | 4 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | final class ServiceFactory implements FactoryInterface |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @var ContainerInterface |
||
| 22 | */ |
||
| 23 | private $container; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var iterable<ServiceIdResolverInterface> |
||
| 27 | */ |
||
| 28 | private $serviceIdResolvers; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * ServiceFactory constructor. |
||
| 32 | * |
||
| 33 | * @param ServiceIdResolverInterface[] $serviceIdResolvers |
||
| 34 | */ |
||
| 35 | 2 | public function __construct(ContainerInterface $container, iterable $serviceIdResolvers) |
|
| 36 | { |
||
| 37 | 2 | $this->container = $container; |
|
| 38 | 2 | $this->serviceIdResolvers = $serviceIdResolvers; |
|
| 39 | 2 | } |
|
| 40 | |||
| 41 | /** |
||
| 42 | * @param array<string,mixed> $parameters |
||
| 43 | * |
||
| 44 | * @throws ContainerExceptionInterface |
||
| 45 | * |
||
| 46 | * @return mixed|object|null |
||
| 47 | */ |
||
| 48 | 2 | public function make(string $alias, array $parameters = []) |
|
| 57 | } |
||
| 58 | } |
||
| 59 |