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

ParseResult   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
c 0
b 0
f 0
dl 0
loc 25
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getCollection() 0 3 1
A getPreParser() 0 3 1
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