Completed
Push — master ( 116dd8...98663d )
by Al3x
02:26
created

Product::setDefaultTaxRateId()   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
3
namespace InvoiceNinjaModule\Model;
4
5
class Product extends Base
6
{
7
    /** @var  string */
8
    private $productKey;
9
    /** @var  string */
10
    private $notes;
11
    /** @var  float */
12
    private $cost;
13
    /** @var  float */
14
    private $qty;
15
    /** @var  int */
16
    private $defaultTaxRateId;
17
18
    /**
19
     * @return string
20
     */
21
    public function getProductKey() : string
22
    {
23
        return $this->productKey;
24
    }
25
26
    /**
27
     * @param string $productKey
28
     */
29
    public function setProductKey(string $productKey)
30
    {
31
        $this->productKey = $productKey;
32
    }
33
34
    /**
35
     * @return string
36
     */
37
    public function getNotes() : string
38
    {
39
        return $this->notes;
40
    }
41
42
    /**
43
     * @param string $notes
44
     */
45
    public function setNotes(string $notes)
46
    {
47
        $this->notes = $notes;
48
    }
49
50
    /**
51
     * @return float
52
     */
53
    public function getCost() : float
54
    {
55
        return $this->cost;
56
    }
57
58
    /**
59
     * @param float $cost
60
     */
61
    public function setCost(float $cost)
62
    {
63
        $this->cost = $cost;
64
    }
65
66
    /**
67
     * @return float
68
     */
69
    public function getQty() : float
70
    {
71
        return $this->qty;
72
    }
73
74
    /**
75
     * @param float $qty
76
     */
77
    public function setQty(float $qty)
78
    {
79
        $this->qty = $qty;
80
    }
81
82
    /**
83
     * @return int
84
     */
85
    public function getDefaultTaxRateId() : int
86
    {
87
        return $this->defaultTaxRateId;
88
    }
89
90
    /**
91
     * @param int $defaultTaxRateId
92
     */
93
    public function setDefaultTaxRateId(int $defaultTaxRateId)
94
    {
95
        $this->defaultTaxRateId = $defaultTaxRateId;
96
    }
97
}
98