Passed
Push — master ( 0f10a6...8f1e95 )
by Koen
11:27
created

ParseException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 3
ccs 3
cts 3
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 3
crap 1
1
<?php
2
3
namespace Vlaswinkel\Lua;
4
5
use Exception;
6
7
/**
8
 * Class ParseException
9
 *
10
 * @author  Koen Vlaswinkel <[email protected]>
11
 * @package Vlaswinkel\Lua
12
 */
13
class ParseException extends \RuntimeException {
14
    /**
15
     * Construct the exception. Note: The message is NOT binary safe.
16
     *
17
     * @link  http://php.net/manual/en/exception.construct.php
18
     *
19
     * @param string    $message  [optional] The Exception message to throw.
20
     * @param int       $code     [optional] The Exception code.
21
     * @param Exception $previous [optional] The previous exception used for the exception chaining. Since 5.3.0
22
     *
23
     * @since 5.1.0
24
     */
25 6
    public function __construct($message = "", $code = 0, Exception $previous = null) {
26 6
        parent::__construct($message, $code, $previous);
27
    }
28
}