Completed
Push — master ( ca808c...de2f5d )
by Frederik
02:56
created

OriginalBusinessQuery::setMessageNameId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 6
ccs 3
cts 3
cp 1
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
crap 1
1
<?php
2
3
namespace Genkgo\Camt\Camt054\DTO\V04;
4
5
use DateTimeImmutable;
6
7
class OriginalBusinessQuery
8
{
9
    /**
10
     * @var string
11
     */
12
    private $messageId;
13
14
    /**
15
     * @var string|null
16
     */
17
    private $messageNameId;
18
19
    /**
20
     * @var DateTimeImmutable|null
21
     */
22
    private $createdOn;
23
24
    /**
25
     * @param string $messageId
26
     */
27 3
    public function __construct($messageId)
28
    {
29 3
        $this->messageId = $messageId;
30 3
    }
31
32
    /**
33
     * @return string
34
     */
35 1
    public function getMessageId()
36
    {
37 1
        return $this->messageId;
38
    }
39
40
    /**
41
     * @return string|null
42
     */
43 1
    public function getMessageNameId()
44
    {
45 1
        return $this->messageNameId;
46
    }
47
    
48
    /**
49
     * @param string $messageNameId
50
     *
51
     * @return OriginalBusinessQuery
52
     */
53 3
    public function setMessageNameId($messageNameId)
54
    {
55 3
        $this->messageNameId = $messageNameId;
56
    
57 3
        return $this;
58
    }
59
60
    /**
61
     * @param DateTimeImmutable $createdOn
62
     *
63
     * @return OriginalBusinessQuery
64
     */
65 3
    public function setCreatedOn(DateTimeImmutable $createdOn)
66
    {
67 3
        $this->createdOn = $createdOn;
68
    
69 3
        return $this;
70
    }
71
72
    /**
73
     * @return DateTimeImmutable|null
74
     */
75 1
    public function getCreatedOn()
76
    {
77 1
        return $this->createdOn;
78
    }
79
}
80