| Total Complexity | 3 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 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() |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param \Pixela\ClientInterface $client |
||
| 33 | */ |
||
| 34 | public function setClient(\Pixela\ClientInterface $client) |
||
| 39 |