Completed
Push — master ( a17ed1...ce9e82 )
by Yann
7s
created

GroupHeader::getMessageRecipient()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
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
     * @var Recipient|null
30
     */
31
    private $messageRecipient;
32
33
    /**
34
     * @param $messageId
35
     * @param DateTimeImmutable $createdOn
36
     */
37 19
    public function __construct($messageId, DateTimeImmutable $createdOn)
38
    {
39 19
        $this->messageId = $messageId;
40 19
        $this->createdOn = $createdOn;
41 19
    }
42
43
    /**
44
     * @return string
45
     */
46 3
    public function getMessageId()
47
    {
48 3
        return $this->messageId;
49
    }
50
51
    /**
52
     * @return DateTimeImmutable
53
     */
54 3
    public function getCreatedOn()
55
    {
56 3
        return $this->createdOn;
57
    }
58
59
    /**
60
     * @return string|null
61
     */
62 3
    public function getAdditionalInformation()
63
    {
64 3
        return $this->additionalInformation;
65
    }
66
    
67
    /**
68
     * @param string $additionalInformation
69
     */
70 15
    public function setAdditionalInformation($additionalInformation)
71
    {
72 15
        $this->additionalInformation = $additionalInformation;
73 15
    }
74
75
    /**
76
     * @return Recipient|null
77
     */
78 3
    public function getMessageRecipient()
79
    {
80 3
        return $this->messageRecipient;
81
    }
82
    
83
    /**
84
     * @param Recipient $messageRecipient
85
     */
86 16
    public function setMessageRecipient(Recipient $messageRecipient)
87
    {
88 16
        $this->messageRecipient = $messageRecipient;
89 16
    }
90
}
91