ParserPartChildrenContainerFactory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 2
c 0
b 0
f 0
dl 0
loc 5
ccs 2
cts 2
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A newInstance() 0 3 1
1
<?php
2
/**
3
 * This file is part of the ZBateson\MailMimeParser project.
4
 *
5
 * @license http://opensource.org/licenses/bsd-license.php BSD
6
 */
7
8
namespace ZBateson\MailMimeParser\Parser\Part;
9
10
use ZBateson\MailMimeParser\Parser\Proxy\ParserMimePartProxy;
11
12
/**
13
 * Creates ParserPartChildrenContainer instances.
14
 *
15
 * @author Zaahid Bateson
16
 */
17
class ParserPartChildrenContainerFactory
18
{
19 108
    public function newInstance(ParserMimePartProxy $parserProxy) : ParserPartChildrenContainer
20
    {
21 108
        return new ParserPartChildrenContainer($parserProxy);
22
    }
23
}
24