Completed
Push — master ( 63d470...84e35a )
by Adam
18:27
created

InvoiceItem::getTaxAmount()   A

↳ Parent: InvoiceItem

Complexity

Conditions 1
Paths 1

Duplication

Lines 0
Ratio 0 %

Size

Total Lines 4
Code Lines 2

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace WellCommerce\Bundle\InvoiceBundle\Entity;
4
5
use WellCommerce\Bundle\CoreBundle\Doctrine\Behaviours\Identifiable;
6
use WellCommerce\Bundle\CoreBundle\Entity\EntityInterface;
7
8
/**
9
 * Class InvoiceItem
10
 *
11
 * @author  Adam Piotrowski <[email protected]>
12
 */
13
class InvoiceItem implements EntityInterface
14
{
15
    use Identifiable;
16
    
17
    protected $description = '';
18
    protected $netAmount   = 0;
19
    protected $grossAmount = 0;
20
    protected $taxAmount   = 0;
21
    protected $taxRate     = 0;
22
    protected $currency    = '';
23
    protected $quantity    = 1;
24
    
25
    /**
26
     * @var Invoice
27
     */
28
    protected $invoice;
29
    
30
    public function getDescription(): string
31
    {
32
        return $this->description;
33
    }
34
    
35
    public function setDescription(string $description)
36
    {
37
        $this->description = $description;
38
    }
39
    
40
    public function getNetAmount(): int
41
    {
42
        return $this->netAmount;
43
    }
44
    
45
    public function setNetAmount(int $netAmount)
46
    {
47
        $this->netAmount = $netAmount;
48
    }
49
    
50
    public function getGrossAmount(): int
51
    {
52
        return $this->grossAmount;
53
    }
54
    
55
    public function setGrossAmount(int $grossAmount)
56
    {
57
        $this->grossAmount = $grossAmount;
58
    }
59
    
60
    public function getTaxAmount(): int
61
    {
62
        return $this->taxAmount;
63
    }
64
    
65
    public function setTaxAmount(int $taxAmount)
66
    {
67
        $this->taxAmount = $taxAmount;
68
    }
69
    
70
    public function getTaxRate(): int
71
    {
72
        return $this->taxRate;
73
    }
74
    
75
    public function setTaxRate(int $taxRate)
76
    {
77
        $this->taxRate = $taxRate;
78
    }
79
    
80
    public function getCurrency(): string
81
    {
82
        return $this->currency;
83
    }
84
    
85
    public function setCurrency(string $currency)
86
    {
87
        $this->currency = $currency;
88
    }
89
    
90
    public function getQuantity(): int
91
    {
92
        return $this->quantity;
93
    }
94
    
95
    public function setQuantity(int $quantity)
96
    {
97
        $this->quantity = $quantity;
98
    }
99
    
100
    public function getInvoice(): Invoice
101
    {
102
        return $this->invoice;
103
    }
104
    
105
    public function setInvoice(Invoice $invoice)
106
    {
107
        $this->invoice = $invoice;
108
    }
109
}
110