Completed
Pull Request — master (#4)
by Ruben
03:24
created

Guzzle6ApiClient   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A _doRequest() 0 4 1
1
<?php
2
3
namespace MovingImage\Client\VMPro\ApiClient;
4
5
use MovingImage\Client\VMPro\Interfaces\ApiClientInterface;
6
7
/**
8
 * Class Guzzle6ApiClient.
9
 *
10
 * @author Ruben Knol <[email protected]>
11
 */
12
class Guzzle6ApiClient extends AbstractApiClient implements ApiClientInterface
13
{
14
    /**
15
     * Guzzle6 Client implementation for making HTTP requests with
16
     * the appropriate options.
17
     *
18
     * @param string $method
19
     * @param string $uri
20
     * @param array  $options
21
     *
22
     * @return mixed
23
     */
24 3
    protected function _doRequest($method, $uri, $options)
25
    {
26 3
        return $this->httpClient->request($method, $uri, $options);
27
    }
28
}
29