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

Client   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
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