DeserializerException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
c 1
b 0
f 1
lcom 0
cbo 1
dl 0
loc 19
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
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
}