ReportConfig   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 32
ccs 0
cts 15
cp 0
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
A getId() 0 4 1
A getTemplateId() 0 4 1
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