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.

Amount::getDetails()   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 Onend\PayPal\Payment\Model;
4
5
use JMS\Serializer\Annotation as JMS;
6
7
use Onend\PayPal\Common\Model\AbstractModel;
8
9
class Amount extends AbstractModel
10
{
11
    /**
12
     * @JMS\Type("float")
13
     *
14
     * @var float
15
     */
16
    protected $total;
17
18
    /**
19
     * @JMS\Type("string")
20
     *
21
     * @var string
22
     */
23
    protected $currency;
24
25
    /**
26
     * @JMS\Type("Onend\PayPal\Payment\Model\AmountDetails")
27
     *
28
     * @var AmountDetails
29
     */
30
    protected $details;
31
32
    /**
33
     * @return string
34
     */
35
    public function getCurrency()
36
    {
37
        return $this->currency;
38
    }
39
40
    /**
41
     * @param string $currency
42
     */
43
    public function setCurrency($currency)
44
    {
45
        $this->currency = $currency;
46
    }
47
48
    /**
49
     * @return AmountDetails
50
     */
51
    public function getDetails()
52
    {
53
        return $this->details;
54
    }
55
56
    /**
57
     * @param AmountDetails $details
58
     */
59
    public function setDetails(AmountDetails $details)
60
    {
61
        $this->details = $details;
62
    }
63
64
    /**
65
     * @return float
66
     */
67
    public function getTotal()
68
    {
69
        return (float)$this->total;
70
    }
71
72
    /**
73
     * @param float $total
74
     */
75
    public function setTotal($total)
76
    {
77
        $this->total = (float)$total;
78
    }
79
}
80