ReportConfig::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 8
ccs 0
cts 7
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
crap 2
1
<?php
2
namespace Mathielen\ReportWriteEngine\Engine;
3
4
use Assert\Assertion;
5
6
class ReportConfig
7
{
8
9
    private $id;
10
    private $templateId;
11
12
    public function __construct($templateId, $id)
13
    {
14
        Assertion::notEmpty($templateId);
15
        Assertion::string($id);
16
17
        $this->id = $id;
18
        $this->templateId = $templateId;
19
    }
20
21
    /**
22
     * @return string
23
     */
24
    public function getId()
25
    {
26
        return $this->id;
27
    }
28
29
    /**
30
     * @return string
31
     */
32
    public function getTemplateId()
33
    {
34
        return $this->templateId;
35
    }
36
37
}
38