Passed
Push — hotfix/4.1.1 ( 2d60bf...00eef4 )
by Felipe
04:27
created

JpGraphExceptionL   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 9
ccs 0
cts 5
cp 0
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
/**
4
 * JPGraph v4.0.3
5
 */
6
7
namespace Amenadiel\JpGraph\Util;
8
9
class JpGraphExceptionL extends JpGraphException
10
{
11
    // Redefine the exception so message isn't optional
12
    public function __construct($errcode, $a1 = null, $a2 = null, $a3 = null, $a4 = null, $a5 = null)
13
    {
14
        // make sure everything is assigned properly
15
        $errtxt = new ErrMsgText();
16
        JpGraphError::SetTitle('JpGraph Error: ' . $errcode);
17
        parent::__construct($errtxt->Get($errcode, $a1, $a2, $a3, $a4, $a5), 0);
18
    }
19
}
20