EmailCheckerException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
eloc 2
nc 1
nop 2
1
<?php
2
3
/*
4
 * This file is part of EmailChecker.
5
 *
6
 * (c) Corrado Ronci <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace sorciulus\EmailChecker\Exception;
13
14
/**
15
 * Exception when the given email is not valid.
16
 */
17
class EmailCheckerException extends \RuntimeException
18
{
19
	/**
20
     * The debug info 
21
     * @var mixed
22
     */
23
    private $debug;
24
25
	public function __construct($msg, array $debug = [])
26
    {
27
        $this->debug = $debug;        
28
        parent::__construct($msg);
29
    }
30
    /**
31
     * @return Debug Info
0 ignored issues
show
Bug introduced by
The type sorciulus\EmailChecker\Exception\Debug was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
32
     */
33
    public function getDebug()
34
    {
35
        return $this->debug;
36
    }
37
}