TaxDetail   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 53
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 53
ccs 11
cts 11
cp 1
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getAmount() 0 4 1
A getTaxRate() 0 4 1
A getCollectable() 0 4 1
1
<?php
2
3
namespace LAShowroom\TaxJarBundle\Model\Response;
4
5
class TaxDetail
6
{
7
    /**
8
     * @var float
9
     */
10
    private $amount;
11
12
    /**
13
     * @var float
14
     */
15
    private $taxRate;
16
17
    /**
18
     * @var float
19
     */
20
    private $collectable;
21
22
    /**
23
     * @param float $amount
24
     * @param float $taxRate
25
     * @param float $collectable
26
     */
27 6
    public function __construct($amount, $taxRate, $collectable)
28
    {
29 6
        $this->amount = $amount;
30 6
        $this->taxRate = $taxRate;
31 6
        $this->collectable = $collectable;
32 6
    }
33
34
    /**
35
     * @return float
36
     */
37 2
    public function getAmount()
38
    {
39 2
        return $this->amount;
40
    }
41
42
    /**
43
     * @return float
44
     */
45 2
    public function getTaxRate()
46
    {
47 2
        return $this->taxRate;
48
    }
49
50
    /**
51
     * @return float
52
     */
53 2
    public function getCollectable()
54
    {
55 2
        return $this->collectable;
56
    }
57
}
58