GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Item::setQuantity()   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 1
1
<?php
2
3
namespace Onend\PayPal\Payment\Model;
4
5
use JMS\Serializer\Annotation as JMS;
6
7
use Onend\PayPal\Common\Model\AbstractModel;
8
9
class Item extends AbstractModel
10
{
11
    /**
12
     * @JMS\Type("string")
13
     *
14
     * @var string
15
     */
16
    protected $quantity;
17
18
    /**
19
     * @JMS\Type("string")
20
     *
21
     * @var string
22
     */
23
    protected $name;
24
25
    /**
26
     * @JMS\Type("string")
27
     *
28
     * @var string
29
     */
30
    protected $price;
31
32
    /**
33
     * @JMS\Type("string")
34
     *
35
     * @var string
36
     */
37
    protected $currency;
38
39
    /**
40
     * @JMS\Type("string")
41
     *
42
     * @var string
43
     */
44
    protected $sku;
45
46
    /**
47
     * @return string
48
     */
49
    public function getCurrency()
50
    {
51
        return $this->currency;
52
    }
53
54
    /**
55
     * @param string $currency
56
     */
57
    public function setCurrency($currency)
58
    {
59
        $this->currency = $currency;
60
    }
61
62
    /**
63
     * @return string
64
     */
65
    public function getName()
66
    {
67
        return $this->name;
68
    }
69
70
    /**
71
     * @param string $name
72
     */
73
    public function setName($name)
74
    {
75
        $this->name = $name;
76
    }
77
78
    /**
79
     * @return string
80
     */
81
    public function getPrice()
82
    {
83
        return $this->price;
84
    }
85
86
    /**
87
     * @param string $price
88
     */
89
    public function setPrice($price)
90
    {
91
        $this->price = $price;
92
    }
93
94
    /**
95
     * @return string
96
     */
97
    public function getQuantity()
98
    {
99
        return $this->quantity;
100
    }
101
102
    /**
103
     * @param string $quantity
104
     */
105
    public function setQuantity($quantity)
106
    {
107
        $this->quantity = $quantity;
108
    }
109
110
    /**
111
     * @return string
112
     */
113
    public function getSku()
114
    {
115
        return $this->sku;
116
    }
117
118
    /**
119
     * @param string $sku
120
     */
121
    public function setSku($sku)
122
    {
123
        $this->sku = $sku;
124
    }
125
}
126