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   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 1
cbo 1
dl 0
loc 27
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getProtocol() 0 4 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