Completed
Push — master ( 1425f5...557488 )
by Дмитрий
05:01 queued 02:42
created

HttpClient::setHttpClient()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php
2
/**
3
 * SocialConnect project
4
 * @author: Patsura Dmitry https://github.com/ovr <[email protected]>
5
 */
6
7
namespace SocialConnect\Common;
8
9
use Psr\Http\Client\ClientInterface;
10
11
trait HttpClient
12
{
13
    /**
14
     * @var ClientInterface
15
     */
16
    protected $httpClient;
17
18
    public function setHttpClient(ClientInterface $httpClient)
19
    {
20
        $this->httpClient = $httpClient;
21
    }
22
23
    /**
24
     * @return ClientInterface
25
     */
26
    public function getHttpClient()
27
    {
28
        return $this->httpClient;
29
    }
30
}
31