Test Failed
Branch 1.0.0 (84f469)
by Zaahid
05:36
created

UUEncodedPartFactory::newInstance()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 2
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\Message\Part;
8
9
/**
10
 * Responsible for creating UUEncodedPart instances.
11
 *
12
 * @author Zaahid Bateson
13
 */
14
class UUEncodedPartFactory extends MessagePartFactory
15
{
16
    /**
17
     * Constructs a new UUEncodedPart object and returns it
18
     * 
19
     * @param string $messageObjectId
20
     * @param PartBuilder $partBuilder
21
     * @return \ZBateson\MailMimeParser\Message\UUEncodedPartPart
22
     */
23
    public function newInstance($messageObjectId, PartBuilder $partBuilder)
24
    {
25
        return new UUEncodedPart(
26
            $messageObjectId,
27
            $partBuilder,
28
            $this->partStreamFilterManagerFactory->newInstance()
29
        );
30
    }
31
}
32