ReceivedPart   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

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
8
namespace ZBateson\MailMimeParser\Header\Part;
9
10
use Psr\Log\LoggerInterface;
11
use ZBateson\MbWrapper\MbWrapper;
12
13
/**
14
 * Represents one parameter in a parsed 'Received' header, e.g. the FROM or VIA
15
 * part.
16
 *
17
 * Note that FROM and BY actually get parsed into a sub-class,
18
 * ReceivedDomainPart which keeps track of other sub-parts that can be parsed
19
 * from them.
20
 *
21
 * @author Zaahid Bateson
22
 */
23
class ReceivedPart extends NameValuePart
24
{
25
    /**
26
     * @param HeaderPart[] $children
27
     */
28 1
    public function __construct(
29
        LoggerInterface $logger,
30
        MbWrapper $charsetConverter,
31
        string $name,
32
        array $children
33
    ) {
34 1
        parent::__construct($logger, $charsetConverter, [], $children);
35 1
        $this->name = $name;
36
    }
37
}
38