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

Record::setCopyDuplicateIndicator()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

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 4
ccs 3
cts 3
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
3
namespace Genkgo\Camt\DTO;
4
5
/**
6
 * Class Record
7
 * @package Genkgo\Camt\DTO
8
 */
9
abstract class Record
10
{
11
    /**
12
     * @var string
13
     */
14
    protected $id;
15
16
    /**
17
     * @var \DateTimeImmutable
18
     */
19
    protected $createdOn;
20
21
    /**
22
     * @var Account
23
     */
24
    protected $account;
25
26
    /**
27
     * @var Pagination|null
28
     */
29
    protected $pagination;
30
31
    /**
32
     * @var string|null
33
     */
34
    protected $electronicSequenceNumber;
35
36
    /**
37
     * @var string|null
38
     */
39
    protected $copyDuplicateIndicator;
40
41
    /**
42
     * @var array
43
     */
44
    protected $entries = [];
45
46
    /**
47
     * @param string $id
48
     * @param \DateTimeImmutable $createdOn
49
     * @param Account $account
50
     */
51 19
    public function __construct($id, \DateTimeImmutable $createdOn, Account $account)
52
    {
53 19
        $this->id = $id;
54 19
        $this->createdOn = $createdOn;
55 19
        $this->account = $account;
56 19
    }
57
58
    /**
59
     * @return string
60
     */
61 3
    public function getId()
62
    {
63 3
        return $this->id;
64
    }
65
66
    /**
67
     * @return \DateTimeImmutable
68
     */
69 3
    public function getCreatedOn()
70
    {
71 3
        return $this->createdOn;
72
    }
73
74
    /**
75
     * @return Account
76
     */
77 3
    public function getAccount()
78
    {
79 3
        return $this->account;
80
    }
81
82
    /**
83
     * @return Pagination
84
     */
85 3
    public function getPagination()
86
    {
87 3
        return $this->pagination;
88
    }
89
    
90
    /**
91
     * @param Pagination $pagination
92
     */
93 12
    public function setPagination(Pagination $pagination)
94
    {
95 12
        $this->pagination = $pagination;
96 12
    }
97
98
    /**
99
     * @return string
100
     */
101 3
    public function getElectronicSequenceNumber()
102
    {
103 3
        return $this->electronicSequenceNumber;
104
    }
105
    
106
    /**
107
     * @param string $electronicSequenceNumber
108
     */
109 16
    public function setElectronicSequenceNumber($electronicSequenceNumber)
110
    {
111 16
        $this->electronicSequenceNumber = $electronicSequenceNumber;
112 16
    }
113
114
    /**
115
     * @param string $copyDuplicateIndicator
0 ignored issues
show
Bug introduced by
There is no parameter named $copyDuplicateIndicator. Was it maybe removed?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.

Consider the following example. The parameter $italy is not defined by the method finale(...).

/**
 * @param array $germany
 * @param array $island
 * @param array $italy
 */
function finale($germany, $island) {
    return "2:1";
}

The most likely cause is that the parameter was removed, but the annotation was not.

Loading history...
116
     */
117 3
    public function getCopyDuplicateIndicator()
118
    {
119 3
        return $this->copyDuplicateIndicator;
120
    }
121
    
122
    /**
123
     * @return string
124
     */
125 16
    public function setCopyDuplicateIndicator($copyDuplicateIndicator)
126
    {
127 16
        $this->copyDuplicateIndicator = $copyDuplicateIndicator;
128 16
    }
129
130
    /**
131
     * @param Entry $entry
132
     */
133 16
    public function addEntry(Entry $entry)
134
    {
135 16
        $this->entries[] = $entry;
136 16
    }
137
138
    /**
139
     * @return Entry[]
140
     */
141 5
    public function getEntries()
142
    {
143 5
        return $this->entries;
144
    }
145
}
146