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.

Vipps::payment()   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 3
1
<?php
2
3
/**
4
 * Vipps class.
5
 *
6
 * Vipps client handles all requests, has built in factories for all resources.
7
 */
8
9
namespace zaporylie\Vipps;
10
11
use zaporylie\Vipps\Api\Authorization;
12
use zaporylie\Vipps\Api\Payment;
13
14
/**
15
 * Class Vipps
16
 * @package Vipps
17
 */
18
class Vipps implements VippsInterface
19
{
20
21
    /**
22
     * @var \zaporylie\Vipps\ClientInterface
23
     */
24
    protected $client;
25
26
    /**
27
     * Vipps constructor.
28
     *
29
     * @param \zaporylie\Vipps\ClientInterface $client
30
     */
31
    public function __construct(ClientInterface $client)
32
    {
33
        $this->client = $client;
34
    }
35
36
    /**
37
     * {@inheritdoc}
38
     */
39
    public function getClient()
40
    {
41
        return $this->client;
42
    }
43
44
    /**
45
     * @param string $subscription_key
46
     * @param string $merchant_serial_number
47
     * @param string $custom_path
48
     *
49
     * @return \zaporylie\Vipps\Api\Payment
50
     */
51
    public function payment($subscription_key, $merchant_serial_number, $custom_path = 'ecomm')
52
    {
53
        return new Payment($this, $subscription_key, $merchant_serial_number, $custom_path);
54
    }
55
56
    /**
57
     * @param string $subscription_key
58
     *
59
     * @return \zaporylie\Vipps\Api\Authorization
60
     */
61
    public function authorization($subscription_key)
62
    {
63
        return new Authorization($this, $subscription_key);
64
    }
65
}
66