Passed
Push — main ( 144de1...77b9e9 )
by Thierry
02:56
created

DataDepth::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
c 0
b 0
f 0
dl 0
loc 5
rs 10
cc 1
nc 1
nop 2
1
<?php
2
3
/**
4
 * DataDepth.php - Incorrect config data exception
5
 *
6
 * This exception is thrown when config data are incorrect.
7
 *
8
 * @package jaxon-core
9
 * @author Thierry Feuzeu <[email protected]>
10
 * @copyright 2022 Thierry Feuzeu <[email protected]>
11
 * @license https://opensource.org/licenses/BSD-3-Clause BSD 3-Clause License
12
 * @link https://github.com/jaxon-php/jaxon-core
13
 */
14
15
namespace Jaxon\Utils\Config\Exception;
16
17
class DataDepth extends \Exception
18
{
19
    /**
20
     * @var string
21
     */
22
    public $sPrefix;
23
24
    /**
25
     * @var int
26
     */
27
    public $nDepth;
28
29
    /**
30
     * @param string $sPrefix
31
     * @param int $nDepth
32
     */
33
    public function __construct(string $sPrefix, int $nDepth)
34
    {
35
        parent::__construct();
36
        $this->sPrefix = $sPrefix;
37
        $this->nDepth = $nDepth;
38
    }
39
}
40