Passed
Push — master ( c2faf8...afa411 )
by Al3x
11:51
created

TaxRate::setName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 1
Metric Value
cc 1
eloc 1
c 1
b 1
f 1
nc 1
nop 1
dl 0
loc 3
rs 10
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
    private string $name = '';
15
    private float $rate = 0;
16
17
    /**
18
     * @return string
19
     */
20
    public function getName() : string
21
    {
22
        return $this->name;
23
    }
24
25
    /**
26
     * @param string $name
27
     */
28
    public function setName(string $name)
29
    {
30
        $this->name = $name;
31
    }
32
33
    /**
34
     * @return float|int
35
     */
36
    public function getRate() : float|int
37
    {
38
        return $this->rate;
39
    }
40
41
    /**
42
     * @param float|int $rate
43
     */
44
    public function setRate(float|int $rate) : void
45
    {
46
        $this->rate = $rate;
47
    }
48
}
49