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.

AbstractConnector   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 35
ccs 7
cts 7
cp 1
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getAdapter() 0 4 1
A getPlatform() 0 4 1
1
<?php
2
3
namespace WebservicesNl\Connector;
4
5
use WebservicesNl\Connector\ProtocolAdapter\AdapterInterface;
6
7
/**
8
 * Class BaseConnector.
9
 *
10
 * Platform connector parent.
11
 */
12
abstract class AbstractConnector implements ConnectorInterface
13
{
14
    const PLATFORM_NAME = 'abstract';
15
16
    /**
17
     * @var AdapterInterface
18
     */
19
    protected $adapter;
20
21
    /**
22
     * WsConnector constructor.
23
     *
24
     * @param AdapterInterface $adapter
25
     */
26 3
    public function __construct(AdapterInterface $adapter)
27
    {
28 3
        $this->adapter = $adapter;
29 3
    }
30
31
    /**
32
     * {@inheritdoc}
33
     */
34 1
    public function getAdapter()
35
    {
36 1
        return $this->adapter;
37
    }
38
39
    /**
40
     * {@inheritdoc}
41
     */
42 1
    public function getPlatform()
43
    {
44 1
        return static::PLATFORM_NAME;
45
    }
46
}
47