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

Mailcode_Parser_ParseResult   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
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;
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