HubPlannerClient::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
4
namespace AlfredNutileInc\HPClient;
5
6
use GuzzleHttp\Client;
7
8
class HubPlannerClient
9
{
10
11
    /**
12
     * @var \GuzzleHttp\Client
13
     */
14
    protected $client;
15
16
    public function __construct(Client $client)
17
    {
18
        $this->client = $client;
19
    }
20
21
    /**
22
     * @return \GuzzleHttp\Client
23
     */
24
    public function client()
25
    {
26
        return $this->getClient();
27
    }
28
29
    /**
30
     * @return mixed
31
     */
32
    public function getClient()
33
    {
34
        return $this->client;
35
    }
36
37
    /**
38
     * @param mixed $client
39
     */
40
    public function setClient($client)
41
    {
42
        $this->client = $client;
43
        return $this;
44
    }
45
}
46