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

GraphQLClient::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

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 4
nc 1
nop 4
1
<?php
2
3
namespace Yproximite\Api\Client;
4
5
use Http\Client\HttpClient;
6
use Http\Message\MessageFactory;
7
8
class GraphQLClient extends AbstractClient
9
{
10
    private $graphqlEndpoint;
11
    private $authClient;
12
13
    public function __construct(AuthClient $authClient, string $graphqlEndpoint = null, HttpClient $httpClient = null, MessageFactory $messageFactory = null)
14
    {
15
        parent::__construct($httpClient, $messageFactory);
16
17
        $this->authClient      = $authClient;
18
        $this->graphqlEndpoint = $graphqlEndpoint;
19
    }
20
}
21