AbstractApi   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 1
c 2
b 0
f 1
lcom 0
cbo 0
dl 0
loc 16
ccs 0
cts 4
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
namespace Mechpave\ImgurClient\Api;
4
5
use Mechpave\ImgurClient\Http\HttpClientInterface;
6
7
/**
8
 * Class AbstractApi
9
 * @package Mechpave\ImgurClient\Api
10
 */
11
abstract class AbstractApi
12
{
13
    /**
14
     * @var HttpClientInterface
15
     */
16
    protected $httpClient;
17
18
    /**
19
     * AbstractApi constructor.
20
     * @param HttpClientInterface $httpClient
21
     */
22
    public function __construct(HttpClientInterface $httpClient)
23
    {
24
        $this->httpClient = $httpClient;
25
    }
26
}