Completed
Push — master ( d19556...dcc177 )
by Al3x
08:24
created

TaxRate   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 57
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 4 1
A setName() 0 4 1
A getRate() 0 4 1
A setRate() 0 4 1
A getisInclusive() 0 4 1
A setIsInclusive() 0 4 1
1
<?php
2
declare(strict_types=1);
3
4
namespace InvoiceNinjaModule\Model;
5
6
use InvoiceNinjaModule\Model\Interfaces\TaxRateInterface;
7
8
/**
9
 * Class TaxRate
10
 * @codeCoverageIgnore
11
 */
12
final class TaxRate extends Base implements TaxRateInterface
13
{
14
    /** @var  string */
15
    private $name = '';
16
    /** @var  float */
17
    private $rate = '';
18
    /** @var  float */
19
    private $isInclusive = false;
20
21
    /**
22
     * @return string
23
     */
24
    public function getName() : string
25
    {
26
        return $this->name;
27
    }
28
29
    /**
30
     * @param string $name
31
     */
32
    public function setName(string $name)
33
    {
34
        $this->name = $name;
35
    }
36
37
    /**
38
     * @return float
39
     */
40
    public function getRate() : float
41
    {
42
        return $this->rate;
43
    }
44
45
    /**
46
     * @param float $rate
47
     */
48
    public function setRate(float $rate)
49
    {
50
        $this->rate = $rate;
51
    }
52
53
    /**
54
     * @return float
55
     */
56
    public function getisInclusive() : float
57
    {
58
        return $this->isInclusive;
59
    }
60
61
    /**
62
     * @param float $isInclusive
63
     */
64
    public function setIsInclusive(float $isInclusive)
65
    {
66
        $this->isInclusive = $isInclusive;
67
    }
68
}
69