GenericConsumerService   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 5
c 0
b 0
f 0
dl 0
loc 12
rs 10
ccs 5
cts 5
cp 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 10 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