Completed
Push — master ( a5a50f...1f5af2 )
by Laurent
01:49
created

CreateMonthBillCommand::getMonth()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
require_once __DIR__.'/CommandInterface.php';
4
5
/**
6
 * @author Laurent De Coninck <[email protected]>
7
 */
8
class CreateMonthBillCommand implements CommandInterface
9
{
10
    /**
11
     * @var int
12
     */
13
    private $billingType;
14
15
    /**
16
     * @var int
17
     */
18
    private $billType;
19
20
    /**
21
     * @var int
22
     */
23
    private $billingCondition;
24
25
    /**
26
     * @var int
27
     */
28
    private $modelDocument;
29
30
    /**
31
     * @var string
32
     */
33
    private $publicNote;
34
35
    /**
36
     * @var string
37
     */
38
    private $privateNote;
39
40
    /**
41
     * @var int
42
     */
43
    private $year;
44
45
    /**
46
     * @var int
47
     */
48
    private $month;
49
50
    /**
51
     * @param int    $billingType
52
     * @param int    $billType
53
     * @param int    $billingCondition
54
     * @param int    $modelDocument
55
     * @param string $publicNote
56
     * @param string $privateNote
57
     * @param int    $year
58
     * @param int    $month
59
     */
60 View Code Duplication
    public function __construct(
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
61
        $billingType,
62
        $billType,
63
        $billingCondition,
64
        $modelDocument,
65
        $publicNote,
66
        $privateNote,
67
        $year,
68
        $month
69
    ) {
70
        $this->billingType = $billingType;
71
        $this->billType = $billType;
72
        $this->billingCondition = $billingCondition;
73
        $this->modelDocument = $modelDocument;
74
        $this->publicNote = $publicNote;
75
        $this->privateNote = $privateNote;
76
        $this->year = $year;
77
        $this->month = $month;
78
    }
79
80
    /**
81
     * @return int
82
     */
83
    public function getBillingType()
84
    {
85
        return $this->billingType;
86
    }
87
88
    /**
89
     * @return int
90
     */
91
    public function getBillType()
92
    {
93
        return $this->billType;
94
    }
95
96
    /**
97
     * @return int
98
     */
99
    public function getBillingCondition()
100
    {
101
        return $this->billingCondition;
102
    }
103
104
    /**
105
     * @return int
106
     */
107
    public function getModelDocument()
108
    {
109
        return $this->modelDocument;
110
    }
111
112
    /**
113
     * @return string
114
     */
115
    public function getPublicNote()
116
    {
117
        return $this->publicNote;
118
    }
119
120
    /**
121
     * @return string
122
     */
123
    public function getPrivateNote()
124
    {
125
        return $this->privateNote;
126
    }
127
128
    /**
129
     * @return int
130
     */
131
    public function getYear()
132
    {
133
        return $this->year;
134
    }
135
136
    /**
137
     * @return int
138
     */
139
    public function getMonth()
140
    {
141
        return $this->month;
142
    }
143
}