Passed
Push — master ( 248c35...f550ad )
by Reyo
04:07
created

InvoiceRow::getId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
ccs 0
cts 3
cp 0
rs 10
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the timechimp bundle package.
7
 * (c) Connect Holland.
8
 */
9
10
namespace ConnectHolland\TimechimpBundle\Api\Client\Model;
11
12
class InvoiceRow
13
{
14
    /**
15
     * @var int
16
     */
17
    protected $id;
18
    /**
19
     * @var int
20
     */
21
    protected $invoiceId;
22
    /**
23
     * @var string
24
     */
25
    protected $description;
26
    /**
27
     * @var float
28
     */
29
    protected $quantity;
30
    /**
31
     * @var float
32
     */
33
    protected $price;
34
    /**
35
     * @var float
36
     */
37
    protected $tax;
38
    /**
39
     * @var float
40
     */
41
    protected $total;
42
    /**
43
     * @var int
44
     */
45
    protected $index;
46
    /**
47
     * @var string
48
     */
49
    protected $code;
50
51
    public function getId(): int
52
    {
53
        return $this->id;
54
    }
55
56
    public function setId(int $id): self
57
    {
58
        $this->id = $id;
59
60
        return $this;
61
    }
62
63
    public function getInvoiceId(): int
64
    {
65
        return $this->invoiceId;
66
    }
67
68
    public function setInvoiceId(int $invoiceId): self
69
    {
70
        $this->invoiceId = $invoiceId;
71
72
        return $this;
73
    }
74
75
    public function getDescription(): string
76
    {
77
        return $this->description;
78
    }
79
80
    public function setDescription(string $description): self
81
    {
82
        $this->description = $description;
83
84
        return $this;
85
    }
86
87
    public function getQuantity(): float
88
    {
89
        return $this->quantity;
90
    }
91
92
    public function setQuantity(float $quantity): self
93
    {
94
        $this->quantity = $quantity;
95
96
        return $this;
97
    }
98
99
    public function getPrice(): float
100
    {
101
        return $this->price;
102
    }
103
104
    public function setPrice(float $price): self
105
    {
106
        $this->price = $price;
107
108
        return $this;
109
    }
110
111
    public function getTax(): float
112
    {
113
        return $this->tax;
114
    }
115
116
    public function setTax(float $tax): self
117
    {
118
        $this->tax = $tax;
119
120
        return $this;
121
    }
122
123
    public function getTotal(): float
124
    {
125
        return $this->total;
126
    }
127
128
    public function setTotal(float $total): self
129
    {
130
        $this->total = $total;
131
132
        return $this;
133
    }
134
135
    public function getIndex(): int
136
    {
137
        return $this->index;
138
    }
139
140
    public function setIndex(int $index): self
141
    {
142
        $this->index = $index;
143
144
        return $this;
145
    }
146
147
    public function getCode(): string
148
    {
149
        return $this->code;
150
    }
151
152
    public function setCode(string $code): self
153
    {
154
        $this->code = $code;
155
156
        return $this;
157
    }
158
}
159