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.

Payer::getPayerInfo()   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
use Onend\PayPal\Payment\Enum\PaymentMethod;
9
10
class Payer extends AbstractModel
11
{
12
    /**
13
     * @JMS\Type("string")
14
     * @JMS\SerializedName("payment_method")
15
     *
16
     * @var string
17
     */
18
    protected $paymentMethod;
19
20
    /**
21
     * @JMS\Type("array<Onend\PayPal\Payment\Model\FundingInstrument>")
22
     * @JMS\SerializedName("funding_instruments")
23
     *
24
     * @var FundingInstrument[]
25
     */
26
    protected $fundingInstruments;
27
28
    /**
29
     * @JMS\Type("Onend\PayPal\Payment\Model\PayerInfo")
30
     * @JMS\SerializedName("payer_info")
31
     *
32
     * @var PayerInfo
33
     */
34
    protected $payerInfo;
35
36
    /**
37
     * @return FundingInstrument[]
38
     */
39
    public function getFundingInstruments()
40
    {
41
        return $this->fundingInstruments;
42
    }
43
44
    /**
45
     * @param FundingInstrument[] $fundingInstruments
46
     */
47
    public function setFundingInstruments(array $fundingInstruments)
48
    {
49
        foreach ($fundingInstruments as $fundingInstrument) {
50
            $this->addFundingInstrument($fundingInstrument);
51
        }
52
    }
53
54
    /**
55
     * @param FundingInstrument $fundingInstrument
56
     */
57
    public function addFundingInstrument(FundingInstrument $fundingInstrument)
58
    {
59
        $this->fundingInstruments[] = $fundingInstrument;
60
    }
61
62
    /**
63
     * @return string
64
     */
65
    public function getPaymentMethod()
66
    {
67
        return $this->paymentMethod;
68
    }
69
70
    /**
71
     * @param string $paymentMethod
72
     * @throws \InvalidArgumentException
73
     */
74
    public function setPaymentMethod($paymentMethod)
75
    {
76
        PaymentMethod::checkValue($paymentMethod);
77
        $this->paymentMethod = $paymentMethod;
78
    }
79
80
    /**
81
     * @return PayerInfo
82
     */
83
    public function getPayerInfo()
84
    {
85
        return $this->payerInfo;
86
    }
87
88
    /**
89
     * @param PayerInfo $payerInfo
90
     */
91
    public function setPayerInfo(PayerInfo $payerInfo)
92
    {
93
        $this->payerInfo = $payerInfo;
94
    }
95
}
96