Completed
Pull Request — master (#25)
by Yann
02:50
created

GroupHeader   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 59
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 5
c 2
b 0
f 1
lcom 0
cbo 0
dl 0
loc 59
ccs 13
cts 13
cp 1
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getMessageId() 0 4 1
A getCreatedOn() 0 4 1
A getAdditionalInformation() 0 4 1
A setAdditionalInformation() 0 4 1
1
<?php
2
3
namespace Genkgo\Camt\DTO;
4
5
use DateTimeImmutable;
6
7
/**
8
 * Class GroupHeader
9
 * @package Genkgo\Camt\DTO
10
 */
11
class GroupHeader
12
{
13
    /**
14
     * @var string
15
     */
16
    private $messageId;
17
18
    /**
19
     * @var DateTimeImmutable
20
     */
21
    private $createdOn;
22
23
    /**
24
     * @var string|null
25
     */
26
    private $additionalInformation;
27
28
    /**
29
     * @param $messageId
30
     * @param DateTimeImmutable $createdOn
31
     */
32 19
    public function __construct($messageId, DateTimeImmutable $createdOn)
33
    {
34 19
        $this->messageId = $messageId;
35 19
        $this->createdOn = $createdOn;
36 19
    }
37
38
    /**
39
     * @return string
40
     */
41 3
    public function getMessageId()
42
    {
43 3
        return $this->messageId;
44
    }
45
46
    /**
47
     * @return DateTimeImmutable
48
     */
49 3
    public function getCreatedOn()
50
    {
51 3
        return $this->createdOn;
52
    }
53
54
    /**
55
     * @return string|null
56
     */
57 3
    public function getAdditionalInformation()
58
    {
59 3
        return $this->additionalInformation;
60
    }
61
    
62
    /**
63
     * @param string $additionalInformation
64
     */
65 15
    public function setAdditionalInformation($additionalInformation)
66
    {
67 15
        $this->additionalInformation = $additionalInformation;
68 15
    }
69
}
70