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

GroupHeader::setAdditionalInformation()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 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