MailxpertSDKResponseException::getResponse()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Mailxpert\Exceptions;
4
5
use Exception;
6
use Mailxpert\MailxpertResponse;
7
8
/**
9
 * Class MailxpertSDKResponseException
10
 *
11
 * @package Mailxpert\Exceptions
12
 */
13
class MailxpertSDKResponseException extends MailxpertSDKException
14
{
15
    private $response;
16
17
    /**
18
     * @param MailxpertResponse $response
19
     * @param string            $message
20
     * @param int               $code
21
     * @param Exception|null    $previous
22
     */
23
    public function __construct(MailxpertResponse $response, $message = "", $code = 0, Exception $previous = null)
24
    {
25
        $this->response = $response;
26
27
        parent::__construct($message, $code, $previous);
28
    }
29
30
    /**
31
     * @return MailxpertResponse
32
     */
33
    public function getResponse()
34
    {
35
        return $this->response;
36
    }
37
}
38