Completed
Branch feature/create_monthly_billing (30fb74)
by Laurent
02:14
created

CreateMonthBillCommand::getYear()   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
/**
4
 * @author Laurent De Coninck <[email protected]>
5
 */
6
class CreateMonthBillCommand
7
{
8
    /**
9
     * @var int
10
     */
11
    private $billingType;
12
13
    /**
14
     * @var int
15
     */
16
    private $billType;
17
18
    /**
19
     * @var int
20
     */
21
    private $billingCondition;
22
23
    /**
24
     * @var int
25
     */
26
    private $modelDocument;
27
28
    /**
29
     * @var string
30
     */
31
    private $publicNote;
32
33
    /**
34
     * @var string
35
     */
36
    private $privateNote;
37
38
    /**
39
     * @var int
40
     */
41
    private $year;
42
43
    /**
44
     * @var int
45
     */
46
    private $month;
47
48
    /**
49
     * @param int    $billingType
50
     * @param int    $billType
51
     * @param int    $billingCondition
52
     * @param int    $modelDocument
53
     * @param string $publicNote
54
     * @param string $privateNote
55
     * @param int    $year
56
     * @param int    $month
57
     */
58 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...
59
        $billingType,
60
        $billType,
61
        $billingCondition,
62
        $modelDocument,
63
        $publicNote,
64
        $privateNote,
65
        $year,
66
        $month
67
    ) {
68
        $this->billingType = $billingType;
69
        $this->billType = $billType;
70
        $this->billingCondition = $billingCondition;
71
        $this->modelDocument = $modelDocument;
72
        $this->publicNote = $publicNote;
73
        $this->privateNote = $privateNote;
74
        $this->year = $year;
75
        $this->month = $month;
76
    }
77
78
    /**
79
     * @return int
80
     */
81
    public function getBillingType()
82
    {
83
        return $this->billingType;
84
    }
85
86
    /**
87
     * @return int
88
     */
89
    public function getBillType()
90
    {
91
        return $this->billType;
92
    }
93
94
    /**
95
     * @return int
96
     */
97
    public function getBillingCondition()
98
    {
99
        return $this->billingCondition;
100
    }
101
102
    /**
103
     * @return int
104
     */
105
    public function getModelDocument()
106
    {
107
        return $this->modelDocument;
108
    }
109
110
    /**
111
     * @return string
112
     */
113
    public function getPublicNote()
114
    {
115
        return $this->publicNote;
116
    }
117
118
    /**
119
     * @return string
120
     */
121
    public function getPrivateNote()
122
    {
123
        return $this->privateNote;
124
    }
125
126
    /**
127
     * @return int
128
     */
129
    public function getYear()
130
    {
131
        return $this->year;
132
    }
133
134
    /**
135
     * @return int
136
     */
137
    public function getMonth()
138
    {
139
        return $this->month;
140
    }
141
}