Completed
Push — master ( e41c6a...6a7f08 )
by Saurabh
03:07
created

BaseClass   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
namespace Sausin\Signere;
4
5
use GuzzleHttp\Client;
6
7
abstract class BaseClass
8
{
9
    use UrlTransformer;
10
11
    /** @var \GuzzleHttp\Client */
12
    protected $client;
13
14
    /** @var Headers */
15
    protected $headers;
16
17
    /** @var string The environment this is being run in */
18
    protected $environment;
19
20
    /**
21
     * Instantiate the class.
22
     *
23
     * @param Client  $client
24
     * @param Headers $headers
25
     * @param string  $environment
26
     */
27 64
    public function __construct(Client $client, Headers $headers, $environment = null)
28
    {
29 64
        $this->client = $client;
30 64
        $this->headers = $headers;
31 64
        $this->environment = $environment;
32 64
    }
33
}
34