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

VersionBridgeClient::sendRequest()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
nc 1
cc 1
nop 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