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.

Completed
Push — develop ( bb6001...f9dedd )
by Alexandru
03:55
created

HttpResponseException::getResponse()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
cc 1
eloc 2
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 Buzz\Message\MessageInterface;
15
use Buzz\Message\RequestInterface;
16
17
/**
18
 * @author  Alexandru G.    <[email protected]>
19
 */
20
class HttpResponseException extends \Exception
21
{
22
    /** @var MessageInterface */
23
    private $response;
24
25
    /** @var RequestInterface */
26
    private $request;
27
28
    /**
29
     * @access public
30
     * @return RequestInterface
31
     */
32
    public function getRequest()
33
    {
34
        return $this->request;
35
    }
36
37
    /**
38
     * @access public
39
     * @param  RequestInterface $request
40
     * @return $this
41
     */
42 1
    public function setRequest($request)
43
    {
44 1
        $this->request = $request;
45
46 1
        return $this;
47
    }
48
49
    /**
50
     * @access public
51
     * @return MessageInterface
52
     */
53
    public function getResponse()
54
    {
55
        return $this->response;
56
    }
57
58
    /**
59
     * @access public
60
     * @param  MessageInterface $response
61
     * @return $this
62
     */
63 1
    public function setResponse($response)
64
    {
65 1
        $this->response = $response;
66
67 1
        return $this;
68
    }
69
}
70