Passed
Push — master ( 46ed75...ca2387 )
by Zaahid
03:33
created

GenericConsumerService   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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