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.

AmountDetails::setShipping()   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 AmountDetails extends AbstractModel
10
{
11
    /**
12
     * @JMS\Type("float")
13
     *
14
     * @var float
15
     */
16
    protected $subtotal;
17
18
    /**
19
     * @JMS\Type("float")
20
     *
21
     * @var float
22
     */
23
    protected $tax;
24
25
    /**
26
     * @JMS\Type("float")
27
     *
28
     * @var float
29
     */
30
    protected $shipping;
31
32
    /**
33
     * @return float
34
     */
35
    public function getShipping()
36
    {
37
        return (float)$this->shipping;
38
    }
39
40
    /**
41
     * @param float $shipping
42
     */
43
    public function setShipping($shipping)
44
    {
45
        $this->shipping = (float)$shipping;
46
    }
47
48
    /**
49
     * @return float
50
     */
51
    public function getSubtotal()
52
    {
53
        return (float)$this->subtotal;
54
    }
55
56
    /**
57
     * @param float $subtotal
58
     */
59
    public function setSubtotal($subtotal)
60
    {
61
        $this->subtotal = (float)$subtotal;
62
    }
63
64
    /**
65
     * @return float
66
     */
67
    public function getTax()
68
    {
69
        return (float)$this->tax;
70
    }
71
72
    /**
73
     * @param float $tax
74
     */
75
    public function setTax($tax)
76
    {
77
        $this->tax = (float)$tax;
78
    }
79
}
80