Conditions | 4 |
Paths | 4 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
52 | public function createParserProxyFor(PartBuilder $partBuilder) |
||
53 | { |
||
54 | foreach ($this->parsers as $parser) { |
||
55 | if ($parser->canParse($partBuilder)) { |
||
56 | $factory = ($partBuilder->getParent() === null) ? |
||
57 | $parser->getParserMessageProxyFactory() : |
||
58 | $parser->getParserPartProxyFactory(); |
||
59 | return $factory->newInstance($partBuilder, $parser); |
||
60 | } |
||
61 | } |
||
62 | return null; |
||
63 | } |
||
65 |