Test Failed
Push — 1.0.0 ( 30b11b...d49389 )
by Zaahid
02:27
created

AbstractHelper   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 30
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 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\Helper;
8
9
use ZBateson\MailMimeParser\Message\Part\Factory\MimePartFactory;
10
use ZBateson\MailMimeParser\Message\Part\Factory\PartBuilderFactory;
11
use ZBateson\MailMimeParser\Message\Part\Factory\UUEncodedPartFactory;
12
13
/**
14
 * Base class for message helpers.
15
 *
16
 * @author Zaahid Bateson
17
 */
18
abstract class AbstractHelper
19
{
20
    /**
21
     * @var MimePartFactory to create parts for attachments/content
22
     */
23
    protected $mimePartFactory;
24
25
    /**
26
     * @var UUEncodedPartFactory to create parts for attachments
27
     */
28
    protected $uuEncodedPartFactory;
29
30
    /**
31
     * @var PartBuilderFactory to create parts for attachments/content
32
     */
33
    protected $partBuilderFactory;
34
35
    /**
36
     * @param MimePartFactory $mimePartFactory
37
     * @param UUEncodedPartFactory $uuEncodedPartFactory
38
     * @param PartBuilderFactory $partBuilderFactory
39
     */
40
    public function __construct(
41
        MimePartFactory $mimePartFactory,
42
        UUEncodedPartFactory $uuEncodedPartFactory,
43
        PartBuilderFactory $partBuilderFactory
44
    ) {
45
        $this->mimePartFactory = $mimePartFactory;
46
        $this->uuEncodedPartFactory = $uuEncodedPartFactory;
47
        $this->partBuilderFactory = $partBuilderFactory;
48
    }
49
}
50