JsonDepthException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 11
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 8
nc 1
nop 3
1
<?php
2
3
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
4
5
namespace Json\Exception;
6
7
use LengthException;
8
use Exception;
9
10
class JsonDepthException extends LengthException implements
11
    JsonException
12
{
13
    public function __construct(
14
        $message = "The maximum stack depth has been exceeded.",
15
        $code = 1,
16
        Exception $previous = null
17
    ) {
18
        parent::__construct(
19
            $message,
20
            $code,
21
            $previous
22
        );
23
    }
24
}
25