Passed
Pull Request — master (#171)
by Zaahid
06:32 queued 03:18
created

ParserPartChildrenContainerFactory::newInstance()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 1
c 0
b 0
f 0
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 1
crap 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
namespace ZBateson\MailMimeParser\Parser\Part;
8
9
use ZBateson\MailMimeParser\Parser\Proxy\ParserMimePartProxy;
10
11
/**
12
 * Creates ParserPartChildrenContainer instances.
13
 *
14
 * @author Zaahid Bateson
15
 */
16
class ParserPartChildrenContainerFactory
17
{
18 105
    public function newInstance(ParserMimePartProxy $parserProxy)
19
    {
20 105
        return new ParserPartChildrenContainer($parserProxy);
21
    }
22
}
23