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.

AbstractAdapter   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 1
dl 0
loc 27
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

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
    /**
16
     * @var ClientInterface
17
     */
18
    protected $client;
19
20
    /**
21
     * Constructor.
22
     *
23
     * take care the sending the message over the client and protocol related crap
24
     *
25
     * @param ClientInterface $client
26
     */
27 5
    public function __construct(ClientInterface $client)
28
    {
29 5
        $this->client = $client;
30 5
    }
31
32
    /**
33
     * {@inheritdoc}
34
     */
35 2
    public function getProtocol()
36
    {
37 2
        return $this->client->getProtocolName();
38
    }
39
}
40