| Total Complexity | 3 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | final class ContainerDelegatorFactory |
||
| 31 | { |
||
| 32 | /** |
||
| 33 | * @var array Either delegator factory names or instances. |
||
| 34 | */ |
||
| 35 | private $delegators; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @var callable |
||
| 39 | */ |
||
| 40 | private $factory; |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @param array $delegators Array of delegator factory names or instances. |
||
| 44 | * @param callable $factory Callable that can return the initial instance. |
||
| 45 | */ |
||
| 46 | public function __construct(array $delegators, callable $factory) |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Build the instance, invoking each delegator with the result of the previous. |
||
| 54 | * |
||
| 55 | * @param Container $container |
||
| 56 | * @param string $serviceName |
||
| 57 | * @return mixed |
||
| 58 | */ |
||
| 59 | public function build(Container $container, $serviceName) |
||
| 76 |