GuzzleClientAdapter::request()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 3
crap 2
1
<?php
2
namespace Aeq\Hal\Client;
3
4
use GuzzleHttp\Client;
5
6
class GuzzleClientAdapter implements ClientAdapterInterface
7
{
8
    /**
9
     * @var Client
10
     */
11
    private $guzzleClient;
12
13
    /**
14
     * @param Client $guzzleClient
15
     */
16
    public function __construct(Client $guzzleClient)
17
    {
18
        $this->guzzleClient = $guzzleClient;
19
    }
20
21
    /**
22
     * @param string $method
23
     * @param string $uri
24
     * @param array $options
25
     * @return mixed
26
     */
27
    public function request($method, $uri = null, array $options = [])
28
    {
29
        return $this->guzzleClient->request($method, $uri, $options);
30
    }
31
}
32