DeserializerException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 3
1
<?php
2
3
namespace ComradeReader\Exception\Deserializer;
4
5
use ComradeReader\Exception\ReaderException;
6
7
/**
8
 * @package ComradeReader\Exception\Deserializer
9
 */
10
class DeserializerException extends ReaderException
11
{
12
    /**
13
     * @var string $response
14
     */
15
    private $response;
16
17
    /**
18
     * DeserializerException constructor.
19
     * @param string $message
20
     * @param string $response
21
     * @param \Exception $previous
22
     */
23
    public function __construct($message, $response, \Exception $previous = null)
24
    {
25
        $this->response = $response;
26
        parent::__construct($message, 0, $previous);
27
    }
28
}