Completed
Push — master ( efe327...dc9a9e )
by David
08:23
created

VersionBridgeClient   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 9
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
doSendRequest() 0 1 ?
A sendRequest() 0 4 1
1
<?php
2
3
namespace Http\Client\Common;
4
5
use Psr\Http\Message\RequestInterface;
6
7
/**
8
 * A client that helps you migrate from php-http/httplug 1.x to 2.x. This
9
 * will also help you to support PHP5 at the same time you support 2.x.
10
 *
11
 * @author Tobias Nyholm <[email protected]>
12
 */
13
trait VersionBridgeClient
14
{
15
    abstract protected function doSendRequest(RequestInterface $request);
16
17
    public function sendRequest(RequestInterface $request)
18
    {
19
        return $this->doSendRequest($request);
20
    }
21
}
22