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

ParseException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 16
ccs 3
cts 3
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 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
}