Api   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 32
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getClient() 0 3 1
A __construct() 0 3 1
A setClient() 0 3 1
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