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.

Gateway::getDefaultParameters()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 10
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 7
nc 1
nop 0
1
<?php
2
3
namespace Omnipay\Tithely;
4
5
use Omnipay\Common\AbstractGateway;
6
7
/**
8
 * Tithely Gateway
9
 */
10
class Gateway extends AbstractGateway
11
{
12
    public function getName()
13
    {
14
        return 'Tithely';
15
    }
16
17
    public function getDefaultParameters()
18
    {
19
        return array(
20
            'publicKey' => '',
21
            'privateKey' => '',
22
            'organizationId' => '',
23
            'givingType' => '',
24
            'testMode' => false,
25
        );
26
    }
27
28
    public function getPublicKey()
29
    {
30
        return $this->getParameter('publicKey');
31
    }
32
33
    public function setPublicKey($value)
34
    {
35
        return $this->setParameter('publicKey', $value);
36
    }
37
38
    public function getPrivateKey()
39
    {
40
        return $this->getParameter('privateKey');
41
    }
42
43
    public function setPrivateKey($value)
44
    {
45
        return $this->setParameter('privateKey', $value);
46
    }
47
48
    public function getOrganizationId()
49
    {
50
        return $this->getParameter('organizationId');
51
    }
52
53
    public function setOrganizationId($value)
54
    {
55
        return $this->setParameter('organizationId', $value);
56
    }
57
58
    public function getGivingType()
59
    {
60
        return $this->getParameter('givingType');
61
    }
62
63
    public function setGivingType($value)
64
    {
65
        return $this->setParameter('givingType', $value);
66
    }
67
68
    public function purchase(array $options = array())
69
    {
70
        return $this->createRequest('\Omnipay\Tithely\Message\PurchaseRequest', $options);
71
    }
72
}
73