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

BaseClass::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 3
dl 0
loc 6
ccs 5
cts 5
cp 1
crap 1
rs 9.4285
c 0
b 0
f 0
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