Total Complexity | 2 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
20 | class ParserPartStreamContainerFactory |
||
21 | { |
||
22 | protected LoggerInterface $logger; |
||
23 | |||
24 | protected StreamFactory $streamFactory; |
||
25 | |||
26 | protected MbWrapper $mbWrapper; |
||
27 | |||
28 | protected bool $throwExceptionReadingPartContentFromUnsupportedCharsets; |
||
29 | |||
30 | 2 | public function __construct( |
|
31 | LoggerInterface $logger, |
||
32 | StreamFactory $streamFactory, |
||
33 | MbWrapper $mbWrapper, |
||
34 | bool $throwExceptionReadingPartContentFromUnsupportedCharsets |
||
35 | ) { |
||
36 | 2 | $this->logger = $logger; |
|
37 | 2 | $this->streamFactory = $streamFactory; |
|
38 | 2 | $this->mbWrapper = $mbWrapper; |
|
39 | 2 | $this->throwExceptionReadingPartContentFromUnsupportedCharsets = $throwExceptionReadingPartContentFromUnsupportedCharsets; |
|
40 | } |
||
41 | |||
42 | 107 | public function newInstance(ParserPartProxy $parserProxy) : ParserPartStreamContainer |
|
50 | 107 | ); |
|
51 | } |
||
53 |