| Total Complexity | 9 |
| Total Lines | 56 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 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 |
|
| 60 | 21 | } |
|
| 61 | |||
| 62 | 3 | public function setPagination(?Pagination $pagination): void |
|
| 63 | { |
||
| 64 | 3 | $this->pagination = $pagination; |
|
| 65 | } |
||
| 66 | } |
||
| 67 |