Completed
Push — master ( aecb60...ed27b1 )
by Carsten
04:31
created

Exception::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 3
cts 3
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 3
crap 1
1
<?php
2
namespace Lenius\Economic\API;
3
4
/**
5
 * @class       Economic_Exception
6
 */
7
class Exception extends \Exception
8
{
9
    /**
10
     * __Construct function.
11
     *
12
     * Redefine the exception so message isn't optional
13
     *
14
     * @access public
15
     * @param string $message
16
     * @param int $code
17
     * @param Exception $previous
18
     */
19 1
    public function __construct($message, $code = 0, Exception $previous = null)
20
    {
21
        // Make sure everything is assigned properly
22 1
        parent::__construct($message, $code, $previous);
23 1
    }
24
}
25