Total Complexity | 2 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
21 | class PartBuilderFactory |
||
22 | { |
||
23 | /** |
||
24 | * @var \ZBateson\MailMimeParser\Header\HeaderFactory the HeaderFactory |
||
25 | * instance |
||
26 | */ |
||
27 | protected $headerFactory; |
||
28 | |||
29 | /** |
||
30 | * Initializes dependencies |
||
31 | * |
||
32 | * @param HeaderFactory $headerFactory |
||
33 | */ |
||
34 | 1 | public function __construct(HeaderFactory $headerFactory) |
|
35 | { |
||
36 | 1 | $this->headerFactory = $headerFactory; |
|
37 | 1 | } |
|
38 | |||
39 | /** |
||
40 | * Constructs a new PartBuilder object and returns it |
||
41 | * |
||
42 | * @param \ZBateson\MailMimeParser\Message\Part\Factory\MessagePartFactory |
||
43 | * $messagePartFactory |
||
44 | * @return \ZBateson\MailMimeParser\Message\Part\PartBuilder |
||
45 | */ |
||
46 | 1 | public function newPartBuilder(MessagePartFactory $messagePartFactory) |
|
51 | ); |
||
52 | } |
||
54 |