Completed
Push — master ( 40a3a6...58dd05 )
by Carlos
03:17
created

Client   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
namespace Afonso\Emt;
4
5
/**
6
 * The base SDK client for the EMT OpenData API.
7
 *
8
 * @author Carlos Afonso Pérez <[email protected]>
9
 */
10
abstract class Client
11
{
12
    /**
13
     * The request launcher instance.
14
     *
15
     * @var \Afonso\Emt\RequestLauncher
16
     */
17
    protected $launcher;
18
19
    /**
20
     * Create a new Client instance with the given client ID and passkey.
21
     *
22
     * @param string $clientId
23
     * @param string $passkey
24
     */
25 21
    public function __construct($clientId, $passkey)
26
    {
27 21
        $this->launcher = new RequestLauncher($clientId, $passkey);
28 21
    }
29
}
30