Completed
Push — master ( 3229d6...c9eeb2 )
by Baldur
03:55
created

LineItem   A

Complexity

Total Complexity 7

Size/Duplication

Total Lines 98
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 7
lcom 0
cbo 0
dl 0
loc 98
ccs 20
cts 20
cp 1
rs 10
c 0
b 0
f 0

7 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 9 1
A getTotalTax() 0 4 1
A getStateTax() 0 4 1
A getCountyTax() 0 4 1
A getCityTax() 0 4 1
A getSpecialDistrictTax() 0 4 1
A getId() 0 4 1
1
<?php
2
3
namespace LAShowroom\TaxJarBundle\Model\Response;
4
5
class LineItem
6
{
7
    /**
8
     * @var TaxDetail
9
     */
10
    private $totalTax;
11
12
    /**
13
     * @var TaxDetail
14
     */
15
    private $stateTax;
16
17
    /**
18
     * @var TaxDetail
19
     */
20
    private $countyTax;
21
22
    /**
23
     * @var TaxDetail
24
     */
25
    private $cityTax;
26
27
    /**
28
     * @var TaxDetail
29
     */
30
    private $specialDistrictTax;
31
32
    /**
33
     * @var string
34
     */
35
    private $id;
36
37
    /**
38
     * @param TaxDetail        $totalTax
39
     * @param TaxDetail        $stateTax
40
     * @param TaxDetail        $countyTax
41
     * @param TaxDetail        $cityTax
42
     * @param TaxDetail        $specialDistrictTax
43
     * @param string           $id
44
     */
45 6
    public function __construct(TaxDetail $totalTax, TaxDetail $stateTax, TaxDetail $countyTax, TaxDetail $cityTax, TaxDetail $specialDistrictTax, $id)
46
    {
47 6
        $this->totalTax = $totalTax;
48 6
        $this->stateTax = $stateTax;
49 6
        $this->countyTax = $countyTax;
50 6
        $this->cityTax = $cityTax;
51 6
        $this->specialDistrictTax = $specialDistrictTax;
52 6
        $this->id = $id;
53 6
    }
54
55
    /**
56
     * @return TaxDetail
57
     */
58 2
    public function getTotalTax()
59
    {
60 2
        return $this->totalTax;
61
    }
62
63
    /**
64
     * @return TaxDetail
65
     */
66 2
    public function getStateTax()
67
    {
68 2
        return $this->stateTax;
69
    }
70
71
    /**
72
     * @return TaxDetail
73
     */
74 2
    public function getCountyTax()
75
    {
76 2
        return $this->countyTax;
77
    }
78
79
    /**
80
     * @return TaxDetail
81
     */
82 2
    public function getCityTax()
83
    {
84 2
        return $this->cityTax;
85
    }
86
87
    /**
88
     * @return TaxDetail
89
     */
90 2
    public function getSpecialDistrictTax()
91
    {
92 2
        return $this->specialDistrictTax;
93
    }
94
95
    /**
96
     * @return string
97
     */
98 2
    public function getId()
99
    {
100 2
        return $this->id;
101
    }
102
}
103