Item::getPrice()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace CultureKings\Afterpay\Model;
4
5
/**
6
 * Class Item
7
 *
8
 * @package CultureKings\Afterpay\Model
9
 */
10
class Item
11
{
12
    /**
13
     * @var string
14
     */
15
    protected $name;
16
    /**
17
     * @var string
18
     */
19
    protected $sku;
20
    /**
21
     * @var int
22
     */
23
    protected $quantity;
24
    /**
25
     * @var Money
26
     */
27
    protected $price;
28
29
    /**
30
     * @return string
31
     */
32
    public function getName()
33
    {
34
        return $this->name;
35
    }
36
37
    /**
38
     * @return string
39
     */
40
    public function getSKU()
41
    {
42
        return $this->sku;
43
    }
44
45
    /**
46
     * @return int
47
     */
48
    public function getQuantity()
49
    {
50
        return $this->quantity;
51
    }
52
53
    /**
54
     * @return Money
55
     */
56
    public function getPrice()
57
    {
58
        return $this->price;
59
    }
60
61
    /**
62
     * @param string $name
63
     * @return $this
64
     */
65
    public function setName($name)
66
    {
67
        $this->name = $name;
68
69
        return $this;
70
    }
71
72
    /**
73
     * @param string $SKU
74
     * @return $this
75
     */
76
    public function setSKU($SKU)
77
    {
78
        $this->sku = $SKU;
79
80
        return $this;
81
    }
82
83
    /**
84
     * @param int $quantity
85
     * @return $this
86
     */
87
    public function setQuantity($quantity)
88
    {
89
        $this->quantity = $quantity;
90
91
        return $this;
92
    }
93
94
    /**
95
     * @param Money $price
96
     * @return $this
97
     */
98
    public function setPrice(Money $price)
99
    {
100
        $this->price = $price;
101
102
        return $this;
103
    }
104
}
105