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

Guzzle6ApiClient::_doRequest()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

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