DataDepth   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 6
c 1
b 0
f 0
dl 0
loc 21
rs 10

1 Method

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