Completed
Push — master ( 2f5651...57762f )
by Joel
03:26
created

EmulateAsyncClient   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
namespace Http\Client\Plugin;
4
5
use Http\Client\HttpAsyncClient;
6
use Http\Client\HttpClient;
7
use Http\Client\Common\HttpAsyncClientEmulator;
8
use Http\Client\Common\HttpClientDecorator;
9
10
/**
11
 * Emulate an async client.
12
 *
13
 * This should be replaced by an anonymous class in PHP 7.
14
 */
15
class EmulateAsyncClient implements HttpClient, HttpAsyncClient
16
{
17
    use HttpClientDecorator;
18
    use HttpAsyncClientEmulator;
19
20
    public function __construct(HttpClient $httpClient)
21
    {
22
        $this->httpClient = $httpClient;
23
    }
24
}
25