Completed
Push — master ( 0b7b7b...a9a580 )
by Nils
01:40
created

ConnectionRefusedResponse::getRequest()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 4
Ratio 100 %

Importance

Changes 0
Metric Value
dl 4
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace whm\Smoke\Http;
4
5
use GuzzleHttp\Psr7\Response;
6
use phm\HttpWebdriverClient\Http\Response\RequestAwareResponse;
7
use phm\HttpWebdriverClient\Http\Response\UriAwareResponse;
8
use Psr\Http\Message\RequestInterface;
9
10 View Code Duplication
class ConnectionRefusedResponse extends Response implements UriAwareResponse, RequestAwareResponse
11
{
12
    /**
13
     * @var RequestInterface
14
     */
15
    private $request;
16
17
    private $errorMessage = '';
18
19
    public function getUri()
20
    {
21
        return $this->request->getUri();
22
    }
23
24
    public function setRequest(RequestInterface $request)
25
    {
26
        $this->request = $request;
27
    }
28
29
    public function getRequest()
30
    {
31
        return $this->request;
32
    }
33
34
    public function setErrorMessage($errorMessage)
35
    {
36
        $this->errorMessage = $errorMessage;
37
    }
38
39
    /**
40
     * @return string
41
     */
42
    public function getErrorMessage()
43
    {
44
        return $this->errorMessage;
45
    }
46
}
47