Test Failed
Push — master ( 36c5b6...af11e6 )
by Sebastian
04:51
created

Mailcode_Parser_ParseResult::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 2
dl 0
loc 4
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Mailcode;
6
7
class Mailcode_Parser_ParseResult
8
{
9
    private Mailcode_Collection $collection;
10
    private Mailcode_Parser_PreParser $preParser;
11
12
    public function __construct(Mailcode_Collection $collection, Mailcode_Parser_PreParser $preParser)
13
    {
14
        $this->collection = $collection;
15
        $this->preParser = $preParser;
16
    }
17
18
    /**
19
     * @return Mailcode_Collection
20
     */
21
    public function getCollection() : Mailcode_Collection
22
    {
23
        return $this->collection;
24
    }
25
26
    /**
27
     * @return Mailcode_Parser_PreParser
28
     */
29
    public function getPreParser() : Mailcode_Parser_PreParser
30
    {
31
        return $this->preParser;
32
    }
33
}
34