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.

Transaction::getRelatedResources()   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
use JMS\Serializer\JsonDeserializationVisitor;
7
8
use Onend\PayPal\Common\Model\AbstractModel;
9
10
class Transaction extends AbstractModel
11
{
12
    /**
13
     * @JMS\Type("Onend\PayPal\Payment\Model\Amount")
14
     *
15
     * @var Amount
16
     */
17
    protected $amount;
18
19
    /**
20
     * @JMS\Type("string")
21
     *
22
     * @var string
23
     */
24
    protected $description;
25
26
    /**
27
     * @JMS\Type("Onend\PayPal\Payment\Model\ItemList")
28
     * @JMS\SerializedName("item_list")
29
     *
30
     * @var ItemList
31
     */
32
    protected $itemList;
33
34
    /**
35
     * @JMS\Type("array<Onend\PayPal\Payment\Model\RelatedResources>")
36
     * @JMS\SerializedName("related_resources")
37
     *
38
     * @var AbstractRelatedResource[]
39
     */
40
    protected $relatedResources;
41
42
    /**
43
     * @return Amount
44
     */
45
    public function getAmount()
46
    {
47
        return $this->amount;
48
    }
49
50
    /**
51
     * @param Amount $amount
52
     */
53
    public function setAmount(Amount $amount)
54
    {
55
        $this->amount = $amount;
56
    }
57
58
    /**
59
     * @return string
60
     */
61
    public function getDescription()
62
    {
63
        return $this->description;
64
    }
65
66
    /**
67
     * @param string $description
68
     */
69
    public function setDescription($description)
70
    {
71
        $this->description = $description;
72
    }
73
74
    /**
75
     * @param ItemList $itemList
76
     */
77
    public function setItemList(ItemList $itemList)
78
    {
79
        $this->itemList = $itemList;
80
    }
81
82
    /**
83
     * @return ItemList
84
     */
85
    public function getItemList()
86
    {
87
        return $this->itemList;
88
    }
89
90
    /**
91
     * @param AbstractRelatedResource[] $relatedResources
92
     */
93
    public function setRelatedResources(array $relatedResources)
94
    {
95
        $this->relatedResources = $relatedResources;
96
    }
97
98
    /**
99
     * @return AbstractRelatedResource[]
100
     */
101
    public function getRelatedResources()
102
    {
103
        return $this->relatedResources;
104
    }
105
}
106