OriginalBusinessQuery   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 12
dl 0
loc 40
ccs 11
cts 11
cp 1
rs 10
c 1
b 0
f 0
wmc 6

6 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A setMessageNameId() 0 5 1
A getMessageId() 0 3 1
A setCreatedOn() 0 5 1
A getMessageNameId() 0 3 1
A getCreatedOn() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Genkgo\Camt\Camt054\DTO\V04;
6
7
use DateTimeImmutable;
8
9
class OriginalBusinessQuery
10
{
11
    private string $messageId;
12
13
    private ?string $messageNameId = null;
14
15
    private ?DateTimeImmutable $createdOn = null;
16
17
    public function __construct(string $messageId)
18
    {
19
        $this->messageId = $messageId;
20
    }
21
22
    public function getMessageId(): string
23
    {
24
        return $this->messageId;
25
    }
26 4
27
    public function getMessageNameId(): ?string
28 4
    {
29 4
        return $this->messageNameId;
30
    }
31 1
32
    public function setMessageNameId(string $messageNameId): self
33 1
    {
34
        $this->messageNameId = $messageNameId;
35
36 1
        return $this;
37
    }
38 1
39
    public function setCreatedOn(DateTimeImmutable $createdOn): self
40
    {
41 4
        $this->createdOn = $createdOn;
42
43 4
        return $this;
44
    }
45 4
46
    public function getCreatedOn(): ?DateTimeImmutable
47
    {
48 4
        return $this->createdOn;
49
    }
50
}
51