Completed
Push — master ( 341778...272f22 )
by Daniel
05:24 queued 02:55
created

SocketClientException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 3
dl 0
loc 3
ccs 0
cts 3
cp 0
crap 2
rs 10
1
<?php
2
3
namespace MallardDuck\Whois\Exceptions;
4
5
/**
6
 * A basic exception for Missing Arguments.
7
 *
8
 * @author mallardduck <[email protected]>
9
 *
10
 * @copyright lucidinternets.com 2018
11
 *
12
 * @version 1.0.0
13
 */
14
class SocketClientException extends \Exception
15
{
16
17
    /** @var int    An integer code for the exception. */
18
    public const CODE = 0;
19
20
    /**
21
     * Basic Exception Constructor
22
     * @param string          $message  The Exceptions message: this type requires it be related to a missing item.
23
     * @param int             $code     The user defined exception code.
24
     * @param null|\Exception $previous If present, the previous exception if nested exception.
25
     */
26
    public function __construct($message, $code = self::CODE, \Exception $previous = null)
27
    {
28
        parent::__construct($message, $code, $previous);
29
    }
30
}
31