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.

ShippingDetails   A
last analyzed

Complexity

Total Complexity 10

Size/Duplication

Total Lines 128
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 10
lcom 0
cbo 0
dl 0
loc 128
rs 10
c 0
b 0
f 0

10 Methods

Rating   Name   Duplication   Size   Complexity  
A getIsDefault() 0 4 1
A setIsDefault() 0 5 1
A getPriority() 0 4 1
A setPriority() 0 5 1
A getShippingCost() 0 4 1
A setShippingCost() 0 5 1
A getShippingMethod() 0 4 1
A setShippingMethod() 0 5 1
A getShippingMethodId() 0 4 1
A setShippingMethodId() 0 5 1
1
<?php
2
3
namespace zaporylie\Vipps\Model\Payment;
4
5
use JMS\Serializer\Annotation as Serializer;
6
7
class ShippingDetails
8
{
9
10
    /**
11
     * @var string
12
     * @Serializer\Type("string")
13
     */
14
    protected $isDefault;
15
16
    /**
17
     * @var int
18
     * @Serializer\Type("integer")
19
     */
20
    protected $priority;
21
22
    /**
23
     * @var double
24
     * @Serializer\Type("double")
25
     */
26
    protected $shippingCost;
27
28
    /**
29
     * @var string
30
     * @Serializer\Type("string")
31
     */
32
    protected $shippingMethod;
33
34
    /**
35
     * @var string
36
     * @Serializer\Type("string")
37
     */
38
    protected $shippingMethodId;
39
40
    /**
41
     * @return string
42
     */
43
    public function getIsDefault()
44
    {
45
        return $this->isDefault;
46
    }
47
48
    /**
49
     * @param string $isDefault
50
     *
51
     * @return $this
52
     */
53
    public function setIsDefault($isDefault)
54
    {
55
        $this->isDefault = $isDefault;
56
        return $this;
57
    }
58
59
    /**
60
     * @return int
61
     */
62
    public function getPriority()
63
    {
64
        return $this->priority;
65
    }
66
67
    /**
68
     * @param int $priority
69
     *
70
     * @return $this
71
     */
72
    public function setPriority($priority)
73
    {
74
        $this->priority = $priority;
75
        return $this;
76
    }
77
78
    /**
79
     * @return float
80
     */
81
    public function getShippingCost()
82
    {
83
        return $this->shippingCost;
84
    }
85
86
    /**
87
     * @param float $shippingCost
88
     *
89
     * @return $this
90
     */
91
    public function setShippingCost($shippingCost)
92
    {
93
        $this->shippingCost = $shippingCost;
94
        return $this;
95
    }
96
97
    /**
98
     * @return string
99
     */
100
    public function getShippingMethod()
101
    {
102
        return $this->shippingMethod;
103
    }
104
105
    /**
106
     * @param string $shippingMethod
107
     *
108
     * @return $this
109
     */
110
    public function setShippingMethod($shippingMethod)
111
    {
112
        $this->shippingMethod = $shippingMethod;
113
        return $this;
114
    }
115
116
    /**
117
     * @return string
118
     */
119
    public function getShippingMethodId()
120
    {
121
        return $this->shippingMethodId;
122
    }
123
124
    /**
125
     * @param string $shippingMethodId
126
     *
127
     * @return $this
128
     */
129
    public function setShippingMethodId($shippingMethodId)
130
    {
131
        $this->shippingMethodId = $shippingMethodId;
132
        return $this;
133
    }
134
}
135