| Total Complexity | 3 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | final class MultiBinder |
||
| 12 | { |
||
| 13 | /** @var Container */ |
||
| 14 | private $container; |
||
| 15 | |||
| 16 | /** @var array<string, array<string, Lazy>> */ |
||
| 17 | private $lazyCollection = []; |
||
| 18 | |||
| 19 | /** @var string */ |
||
| 20 | private $interface; |
||
| 21 | |||
| 22 | private function __construct(AbstractModule $module, string $interface) |
||
| 26 | } |
||
| 27 | |||
| 28 | public static function newInstance(AbstractModule $module, string $interface): self |
||
| 29 | { |
||
| 30 | return new self($module, $interface); |
||
| 31 | } |
||
| 32 | |||
| 33 | /** @param class-string $class */ |
||
|
|
|||
| 34 | public function add(string $key, string $class): void |
||
| 39 | } |
||
| 40 | } |
||
| 41 |