Completed
Push — master ( 70fbd1...217a07 )
by Joachim
03:18
created

PaymentLine::getName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

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