Completed
Pull Request — master (#9)
by Hugo
01:31
created

Client::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 4
1
<?php
2
3
namespace Yproximite\Api;
4
5
use Http\Client\HttpClient;
6
use Http\Message\MessageFactory;
7
8
class Client
9
{
10
    private $httpClient;
11
    private $apiKey;
12
    private $graphqlEndpoint;
13
    private $messageFactory;
14
15
    public function __construct(HttpClient $httpClient, string $apiKey, string $graphqlEndpoint = null, MessageFactory $messageFactory = null)
16
    {
17
        $this->httpClient      = $httpClient;
18
        $this->apiKey          = $apiKey;
19
        $this->graphqlEndpoint = $graphqlEndpoint;
20
        $this->messageFactory  = $messageFactory;
21
    }
22
}
23