Passed
Push — master ( af11e6...9ff364 )
by Sebastian
03:46
created

Mailcode_Parser_ParseResult::getPreParser()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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