Completed
Push — master ( 7c8fa1...37dc4f )
by Guillaume
02:17
created

Service   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 21
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 9 1
1
<?php
2
3
namespace AlfredTime;
4
5
use AlfredTime\ServiceApiCall;
6
7
class Service
8
{
9
    /**
10
     * @var mixed
11
     */
12
    protected $serviceApiCall = null;
13
14
    /**
15
     * @param $baseUri
16
     * @param $apiToken
17
     */
18
    protected function __construct($baseUri, $credentials)
19
    {
20
        $this->serviceApiCall = new ServiceApiCall([
21
            'base_uri' => $baseUri,
22
            'headers'  => [
23
                'Authorization' => 'Basic ' . $credentials,
24
            ],
25
        ]);
26
    }
27
}
28