MissingArgException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 15
ccs 2
cts 2
cp 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
namespace MallardDuck\Whois\Exceptions;
4
5
use Exception;
6
7
/**
8
 * A basic exception for Missing Arguments.
9
 *
10
 * @author mallardduck <[email protected]>
11
 *
12
 * @copyright lucidinternets.com 2018
13
 *
14
 * @version 1.0.0
15
 */
16
class MissingArgException extends Exception
17
{
18
    /** @var int    An integer code for the exception. */
19
    public const CODE = 0;
20
21
    /**
22
     * Basic Exception Constructor
23
     *
24
     * @param string         $message  The Exceptions message: this type requires it be related to a missing item.
25
     * @param int            $code     The user defined exception code.
26
     * @param null|Exception $previous If present, the previous exception if nested exception.
27
     */
28 16
    public function __construct($message, $code = self::CODE, Exception $previous = null)
29
    {
30 16
        parent::__construct($message, $code, $previous);
31 16
    }
32
}
33