@@ 10-46 (lines=37) @@ | ||
7 | use phm\HttpWebdriverClient\Http\Response\UriAwareResponse; |
|
8 | use Psr\Http\Message\RequestInterface; |
|
9 | ||
10 | 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 |
@@ 10-46 (lines=37) @@ | ||
7 | use phm\HttpWebdriverClient\Http\Response\UriAwareResponse; |
|
8 | use Psr\Http\Message\RequestInterface; |
|
9 | ||
10 | class ErrorResponse 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 |