TaxDetail::getCollectable()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 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