GroupHeader::getPagination()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Genkgo\Camt\DTO;
6
7
use DateTimeImmutable;
8
9
class GroupHeader
10
{
11
    private string $messageId;
12
13
    private DateTimeImmutable $createdOn;
14
15
    private ?string $additionalInformation = null;
16
17
    private ?Recipient $messageRecipient = null;
18
19
    private ?Pagination $pagination = null;
20
21
    public function __construct(string $messageId, DateTimeImmutable $createdOn)
22
    {
23
        $this->messageId = $messageId;
24
        $this->createdOn = $createdOn;
25
    }
26
27
    public function getMessageId(): string
28
    {
29
        return $this->messageId;
30
    }
31
32
    public function getCreatedOn(): DateTimeImmutable
33
    {
34
        return $this->createdOn;
35
    }
36 25
37
    public function getAdditionalInformation(): ?string
38 25
    {
39 25
        return $this->additionalInformation;
40 25
    }
41
42 3
    public function setAdditionalInformation(string $additionalInformation): void
43
    {
44 3
        $this->additionalInformation = $additionalInformation;
45
    }
46
47 3
    public function getMessageRecipient(): ?Recipient
48
    {
49 3
        return $this->messageRecipient;
50
    }
51
52 3
    public function setMessageRecipient(Recipient $messageRecipient): void
53
    {
54 3
        $this->messageRecipient = $messageRecipient;
55
    }
56
57 21
    public function getPagination(): ?Pagination
58
    {
59 21
        return $this->pagination;
60 21
    }
61
62 3
    public function setPagination(?Pagination $pagination): void
63
    {
64 3
        $this->pagination = $pagination;
65
    }
66
}
67