GenericConsumerService::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 4
c 0
b 0
f 0
dl 0
loc 10
ccs 5
cts 5
cp 1
rs 10
cc 1
nc 1
nop 4
crap 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\Consumer;
9
10
use Psr\Log\LoggerInterface;
11
use ZBateson\MailMimeParser\Header\Part\HeaderPartFactory;
12
13
/**
14
 * The base GenericConsumerService is a consumer with CommentConsumerService and
15
 * QuotedStringConsumerService as sub-consumers, and splitting tokens by
16
 * whitespace.
17
 *
18
 * @author Zaahid Bateson
19
 */
20
class GenericConsumerService extends AbstractGenericConsumerService
21
{
22 2
    public function __construct(
23
        LoggerInterface $logger,
24
        HeaderPartFactory $partFactory,
25
        CommentConsumerService $commentConsumerService,
26
        QuotedStringConsumerService $quotedStringConsumerService
27
    ) {
28 2
        parent::__construct(
29 2
            $logger,
30 2
            $partFactory,
31 2
            [$commentConsumerService, $quotedStringConsumerService]
32 2
        );
33
    }
34
}
35