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   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 50
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 60%

Importance

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

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 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