HttpClientExtension   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
c 0
b 0
f 0
lcom 0
cbo 0
dl 0
loc 20
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A init() 0 4 1
A setRetriever() 0 4 1
1
<?php
2
3
namespace whm\Smoke\Extensions\SmokeHttpClient;
4
5
use Ivory\HttpAdapter\HttpAdapterInterface;
6
use whm\Smoke\Extensions\SmokeResponseRetriever\Retriever\Retriever;
7
8
class HttpClientExtension
9
{
10
    /**
11
     * @var Retriever
12
     */
13
    private $retriever;
14
15
    public function init()
16
    {
17
        throw new \RuntimeException('Extension is not ready to use yet.');
18
    }
19
20
    /**
21
     * @Event("Scanner.Init")
22
     */
23
    public function setRetriever(HttpAdapterInterface $httpClient)
0 ignored issues
show
Unused Code introduced by
The parameter $httpClient is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
24
    {
25
26
    }
27
}
28