@@ 24-32 (lines=9) @@ | ||
21 | /** |
|
22 | * @param StreamInterface<ExtractionStrategyInterface> $strategies |
|
23 | */ |
|
24 | public function __construct(StreamInterface $strategies) |
|
25 | { |
|
26 | if ((string) $strategies->type() !== ExtractionStrategyInterface::class) { |
|
27 | throw new InvalidArgumentException; |
|
28 | } |
|
29 | ||
30 | $this->strategies = $strategies; |
|
31 | $this->cache = new Map('string', ExtractionStrategyInterface::class); |
|
32 | } |
|
33 | ||
34 | /** |
|
35 | * {@inheritdoc} |
@@ 24-32 (lines=9) @@ | ||
21 | /** |
|
22 | * @param StreamInterface<InjectionStrategyInterface> $strategies |
|
23 | */ |
|
24 | public function __construct(StreamInterface $strategies) |
|
25 | { |
|
26 | if ((string) $strategies->type() !== InjectionStrategyInterface::class) { |
|
27 | throw new InvalidArgumentException; |
|
28 | } |
|
29 | ||
30 | $this->strategies = $strategies; |
|
31 | $this->cache = new Map('string', InjectionStrategyInterface::class); |
|
32 | } |
|
33 | ||
34 | /** |
|
35 | * {@inheritdoc} |