Completed
Push — master ( 00c09c...43edb6 )
by Joachim
14:51
created

OrderLine::setProductNumber()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace Loevgaard\Dandomain\Pay\PaymentRequest;
4
5
class OrderLine
6
{
7
    /**
8
     * @var string
9
     */
10
    protected $productNumber;
11
12
    /**
13
     * @var string
14
     */
15
    protected $name;
16
17
    /**
18
     * @var int
19
     */
20
    protected $quantity;
21
22
    /**
23
     * @var float
24
     */
25
    protected $price;
26
27
    /**
28
     * @var float
29
     */
30
    protected $vat;
31
32
    /**
33
     * @return string
34
     */
35
    public function getProductNumber() : string
36
    {
37
        return $this->productNumber;
38
    }
39
40
    /**
41
     * @param string $productNumber
42
     * @return OrderLine
43
     */
44
    public function setProductNumber(string $productNumber) : self
45
    {
46
        $this->productNumber = $productNumber;
47
        return $this;
48
    }
49
50
    /**
51
     * @return string
52
     */
53
    public function getName() : string
54
    {
55
        return $this->name;
56
    }
57
58
    /**
59
     * @param string $name
60
     * @return OrderLine
61
     */
62
    public function setName($name) : self
63
    {
64
        $this->name = $name;
65
        return $this;
66
    }
67
68
    /**
69
     * @return int
70
     */
71
    public function getQuantity() : int
72
    {
73
        return $this->quantity;
74
    }
75
76
    /**
77
     * @param int $quantity
78
     * @return OrderLine
79
     */
80
    public function setQuantity($quantity) : self
81
    {
82
        $this->quantity = $quantity;
83
        return $this;
84
    }
85
86
    /**
87
     * @return float
88
     */
89
    public function getPrice() : float
90
    {
91
        return $this->price;
92
    }
93
94
    /**
95
     * @param float $price
96
     * @return OrderLine
97
     */
98
    public function setPrice($price) : self
99
    {
100
        $this->price = $price;
101
        return $this;
102
    }
103
104
    /**
105
     * @return float
106
     */
107
    public function getVat() : float
108
    {
109
        return $this->vat;
110
    }
111
112
    /**
113
     * @param float $vat
114
     * @return OrderLine
115
     */
116
    public function setVat($vat) : self
117
    {
118
        $this->vat = $vat;
119
        return $this;
120
    }
121
}
122