GuzzleClientAdapter   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Test Coverage

Coverage 0%

Importance

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

2 Methods

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