Api::getClient()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Pixela\Api;
4
5
abstract class Api implements ApiInterface
6
{
7
    const API_BASE_ENDPOINT = 'https://pixe.la/v1';
8
9
    /**
10
     * @var \Pixela\ClientInterface
11
     */
12
    private $client;
13
14
    /**
15
     * Client constructor.
16
     * @param \Pixela\ClientInterface $client
17
     */
18
    public function __construct(\Pixela\ClientInterface $client)
19
    {
20
        $this->client = $client;
21
    }
22
23
    /**
24
     * @return \Pixela\ClientInterface
25
     */
26
    public function getClient()
27
    {
28
        return $this->client;
29
    }
30
31
    /**
32
     * @param \Pixela\ClientInterface $client
33
     */
34
    public function setClient(\Pixela\ClientInterface $client)
35
    {
36
        $this->client = $client;
37
    }
38
}
39