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

UUEncodedPartFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 3
dl 0
loc 18
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A newInstance() 0 8 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\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