CreateMonthBillCommand   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 90
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 90
rs 10
c 0
b 0
f 0
wmc 6
lcom 0
cbo 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 13 1
A getBillType() 0 4 1
A getPublicNote() 0 4 1
A getPrivateNote() 0 4 1
A getYear() 0 4 1
A getMonth() 0 4 1
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
    /**
12
     * @var int
13
     */
14
    private $billType;
15
16
    /**
17
     * @var string
18
     */
19
    private $publicNote;
20
21
    /**
22
     * @var string
23
     */
24
    private $privateNote;
25
26
    /**
27
     * @var int
28
     */
29
    private $year;
30
31
    /**
32
     * @var int
33
     */
34
    private $month;
35
36
    /**
37
     * @param int    $billType
38
     * @param string $publicNote
39
     * @param string $privateNote
40
     * @param int    $year
41
     * @param int    $month
42
     */
43
    public function __construct(
44
        $billType,
45
        $publicNote,
46
        $privateNote,
47
        $year,
48
        $month
49
    ) {
50
        $this->billType = $billType;
51
        $this->publicNote = $publicNote;
52
        $this->privateNote = $privateNote;
53
        $this->year = $year;
54
        $this->month = $month;
55
    }
56
57
    /**
58
     * @return int
59
     */
60
    public function getBillType()
61
    {
62
        return $this->billType;
63
    }
64
65
66
    /**
67
     * @return string
68
     */
69
    public function getPublicNote()
70
    {
71
        return $this->publicNote;
72
    }
73
74
    /**
75
     * @return string
76
     */
77
    public function getPrivateNote()
78
    {
79
        return $this->privateNote;
80
    }
81
82
    /**
83
     * @return int
84
     */
85
    public function getYear()
86
    {
87
        return $this->year;
88
    }
89
90
    /**
91
     * @return int
92
     */
93
    public function getMonth()
94
    {
95
        return $this->month;
96
    }
97
}