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.
Test Setup Failed
Push — master ( fe4962...3aa77f )
by Thijs
04:04
created

AbstractAdapter::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace WebservicesNl\Connector\ProtocolAdapter;
4
5
use WebservicesNl\Connector\Client\ClientInterface;
6
7
/**
8
 * AbstractAdapter.
9
 *
10
 * AbstractAdapter, base class for extending all Connector interface Adapters (adapter pattern).
11
 *
12
 */
13
abstract class AbstractAdapter implements AdapterInterface
14
{
15
    const PROTOCOL_NAME = 'abstract';
16
17
    /**
18
     * @var ClientInterface
19
     */
20
    protected $client;
21
    
22
    /**
23
     * Constructor.
24
     *
25
     * @param ClientInterface $client
26
     */
27
    public function __construct(ClientInterface $client)
28
    {
29
        $this->client = $client;
30
    }
31
32
    /**
33
     * {@inheritdoc}
34
     */
35
    public function getProtocol()
36
    {
37
        return $this->client->getProtocolName();
38
    }
39
}
40