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   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 49
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 60%

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 49
ccs 6
cts 10
cp 0.6
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getRequest() 0 4 1
A setRequest() 0 6 1
A getResponse() 0 4 1
A setResponse() 0 6 1
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