Notification Setup Error

We have detected an error in your notification set-up (Event-ID dab39dc24f564ec7bd4628d1305fd03c). Currently, we cannot inform you about inspection progress. Please check that the user 557058:bca11929-8c2d-43f2-8a82-c5416880d395 still has access to your repository or update the API account.

HttpResponseException::getRequest()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
/**
4
 * This file is part of the bitbucket-api package.
5
 *
6
 * (c) Alexandru G. <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Bitbucket\API\Exceptions;
13
14
use Psr\Http\Message\RequestInterface;
15
use Psr\Http\Message\ResponseInterface;
16
17
/**
18
 * @author  Alexandru G.    <[email protected]>
19
 */
20
class HttpResponseException extends \Exception
21
{
22
    /** @var ResponseInterface */
23
    private $response;
24
    /** @var RequestInterface */
25
    private $request;
26
27
    /**
28
     * @access public
29
     * @return RequestInterface
30
     */
31
    public function getRequest()
32
    {
33
        return $this->request;
34
    }
35
36
    /**
37
     * @access public
38
     * @param  RequestInterface $request
39
     * @return $this
40
     */
41
    public function setRequest(RequestInterface $request)
42 1
    {
43
        $this->request = $request;
44 1
45
        return $this;
46 1
    }
47
48
    /**
49
     * @access public
50
     * @return ResponseInterface
51
     */
52
    public function getResponse()
53
    {
54
        return $this->response;
55
    }
56
57
    /**
58
     * @access public
59
     * @param  ResponseInterface $response
60
     * @return $this
61
     */
62
    public function setResponse(ResponseInterface $response)
63 1
    {
64
        $this->response = $response;
65 1
66
        return $this;
67 1
    }
68
}
69