AbstractHelper   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 5
c 1
b 0
f 0
dl 0
loc 18
ccs 3
cts 3
cp 1
rs 10

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
8
namespace ZBateson\MailMimeParser\Message\Helper;
9
10
use ZBateson\MailMimeParser\Message\Factory\IMimePartFactory;
11
use ZBateson\MailMimeParser\Message\Factory\IUUEncodedPartFactory;
12
13
/**
14
 * Base class for message helpers.
15
 *
16
 * @author Zaahid Bateson
17
 */
18
abstract class AbstractHelper
19
{
20
    /**
21
     * @var IMimePartFactory to create parts for attachments/content
22
     */
23
    protected IMimePartFactory $mimePartFactory;
24
25
    /**
26
     * @var IUUEncodedPartFactory to create parts for attachments
27
     */
28
    protected IUUEncodedPartFactory $uuEncodedPartFactory;
29
30 32
    public function __construct(
31
        IMimePartFactory $mimePartFactory,
32
        IUUEncodedPartFactory $uuEncodedPartFactory
33
    ) {
34 32
        $this->mimePartFactory = $mimePartFactory;
35 32
        $this->uuEncodedPartFactory = $uuEncodedPartFactory;
36
    }
37
}
38