Completed
Push — master ( 636a3e...0d9cfe )
by Joachim
12:23
created

OrderLine::getPrice()   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
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
namespace Loevgaard\DandomainAltapayBundle\Entity;
3
4
use Doctrine\ORM\Mapping AS ORM;
5
use Loevgaard\Dandomain\Pay\PaymentRequest\OrderLine as DandomainOrderLine;
6
7
/**
8
 * @ORM\MappedSuperclass
9
 */
10
abstract class OrderLine implements OrderLineInterface
11
{
12
    /**
13
     * @var string
14
     */
15
    protected $productNumber;
16
17
    /**
18
     * @var string
19
     */
20
    protected $name;
21
22
    /**
23
     * @var int
24
     */
25
    protected $quantity;
26
27
    /**
28
     * The price excl vat
29
     *
30
     * @var float
31
     */
32
    protected $price;
33
34
    /**
35
     * @var int
36
     */
37
    protected $vat;
38
39
    /**
40
     * @param DandomainOrderLine $orderLine
41
     */
42
    public function populateFromDandomainPaymentRequest(DandomainOrderLine $orderLine)
0 ignored issues
show
Unused Code introduced by
The parameter $orderLine is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
43
    {
44
        
45
    }
46
47
    /**
48
     * @return string
49
     */
50
    public function getProductNumber() : string
51
    {
52
        return $this->productNumber;
53
    }
54
55
    /**
56
     * @param string $productNumber
57
     * @return OrderLineInterface
58
     */
59
    public function setProductNumber(string $productNumber) : OrderLineInterface
60
    {
61
        $this->productNumber = $productNumber;
62
        return $this;
63
    }
64
65
    /**
66
     * @return string
67
     */
68
    public function getName() : string
69
    {
70
        return $this->name;
71
    }
72
73
    /**
74
     * @param string $name
75
     * @return OrderLineInterface
76
     */
77
    public function setName($name) : OrderLineInterface
78
    {
79
        $this->name = $name;
80
        return $this;
81
    }
82
83
    /**
84
     * @return int
85
     */
86
    public function getQuantity() : int
87
    {
88
        return $this->quantity;
89
    }
90
91
    /**
92
     * @param int $quantity
93
     * @return OrderLineInterface
94
     */
95
    public function setQuantity($quantity) : OrderLineInterface
96
    {
97
        $this->quantity = $quantity;
98
        return $this;
99
    }
100
101
    /**
102
     * @return float
103
     */
104
    public function getPrice() : float
105
    {
106
        return $this->price;
107
    }
108
109
    /**
110
     * @param float $price
111
     * @return OrderLineInterface
112
     */
113
    public function setPrice($price) : OrderLineInterface
114
    {
115
        $this->price = $price;
116
        return $this;
117
    }
118
119
    /**
120
     * @return int
121
     */
122
    public function getVat() : int
123
    {
124
        return $this->vat;
125
    }
126
127
    /**
128
     * @param int $vat
129
     * @return OrderLineInterface
130
     */
131
    public function setVat($vat) : OrderLineInterface
132
    {
133
        $this->vat = $vat;
134
        return $this;
135
    }
136
}