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

TaxRate::setName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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