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

HttpClient   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 4
dl 0
loc 18
rs 10
c 2
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getHttpClient() 0 3 1
A setHttpClient() 0 3 1
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