Test Failed
Push — 2.0 ( 3431b8...9e8731 )
by Zaahid
03:11
created

IMessagePartFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
c 0
b 0
f 0
dl 0
loc 26
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 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\Factory;
8
9
use ZBateson\MailMimeParser\Stream\StreamFactory;
10
11
/**
12
 * Abstract factory for subclasses of IMessagePart.
13
 *
14
 * @author Zaahid Bateson
15
 */
16
abstract class IMessagePartFactory
17
{
18
    /**
19
     * @var StreamFactory
20
     */
21
    protected $streamFactory;
22
23
    /**
24
     * @var PartStreamContainerFactory
25
     */
26
    protected $partStreamContainerFactory;
27
28
    public function __construct(
29
        StreamFactory $streamFactory,
30
        PartStreamContainerFactory $partStreamContainerFactory
31
    ) {
32
        $this->streamFactory = $streamFactory;
33
        $this->partStreamContainerFactory = $partStreamContainerFactory;
34
    }
35
36
    /**
37
     * Constructs a new IMessagePart object and returns it
38
     * 
39
     * @return \ZBateson\MailMimeParser\Message\IMessagePart
40
     */
41
    public abstract function newInstance();
0 ignored issues
show
Coding Style introduced by
The abstract declaration must precede the visibility declaration
Loading history...
42
}
43