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.
Completed
Push — 1.x ( f2247a...73fe3f )
by Jakub
04:00
created

Vipps::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
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
     *
48
     * @return \zaporylie\Vipps\Api\Payment
49
     */
50
    public function payment($subscription_key, $merchant_serial_number)
51
    {
52
        return new Payment($this, $subscription_key, $merchant_serial_number);
53
    }
54
55
    /**
56
     * @param string $subscription_key
57
     *
58
     * @return \zaporylie\Vipps\Api\Authorization
59
     */
60
    public function authorization($subscription_key)
61
    {
62
        return new Authorization($this, $subscription_key);
63
    }
64
}
65