GroupHeader   A
last analyzed

Complexity

Total Complexity 9

Size/Duplication

Total Lines 56
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 16
dl 0
loc 56
ccs 15
cts 15
cp 1
rs 10
c 0
b 0
f 0
wmc 9

9 Methods

Rating   Name   Duplication   Size   Complexity  
A getPagination() 0 3 1
A getAdditionalInformation() 0 3 1
A __construct() 0 4 1
A getCreatedOn() 0 3 1
A setMessageRecipient() 0 3 1
A setAdditionalInformation() 0 3 1
A setPagination() 0 3 1
A getMessageRecipient() 0 3 1
A getMessageId() 0 3 1
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