OriginalBusinessQuery::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
ccs 0
cts 0
cp 0
crap 2
rs 10
c 1
b 0
f 0
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