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

GenericConsumerService::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 3
c 0
b 0
f 0
dl 0
loc 8
ccs 4
cts 4
cp 1
rs 10
cc 1
nc 1
nop 3
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 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