Completed
Pull Request — master (#20)
by Steven
07:01 queued 05:18
created

HttpException::getResponseBody()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php namespace Stevenmaguire\Yelp\Exception;
2
3
class HttpException extends \Exception
4
{
5
    /**
6
     * Response body
7
     *
8
     * @var string
9
     */
10
    protected $responseBody;
11
12
    /**
13
     * Set exception response body from Http request
14
     *
15
     * @param string $body
16
     *
17
     * @return  Stevenmaguire\Yelp\Exception
18
     */
19
    public function setResponseBody($body = null)
20
    {
21
        $this->responseBody = $body;
22
23
        return $this;
24
    }
25
26
    /**
27
     * Get exception response body
28
     *
29
     * @return string
30
     */
31
    public function getResponseBody()
32
    {
33
        return $this->responseBody;
34
    }
35
}
36