Test Failed
Pull Request — master (#122)
by Felipe
08:16 queued 04:08
created

JpGraphExceptionL::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
nc 1
nop 6
dl 0
loc 6
ccs 4
cts 4
cp 1
crap 1
rs 10
c 1
b 0
f 0
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 4
    public function __construct($errcode, $a1 = null, $a2 = null, $a3 = null, $a4 = null, $a5 = null)
13
    {
14
        // make sure everything is assigned properly
15 4
        $errtxt = new ErrMsgText();
16 4
        JpGraphError::SetTitle('JpGraph Error: ' . $errcode);
17 4
        parent::__construct($errtxt->Get($errcode, $a1, $a2, $a3, $a4, $a5), 0);
18 4
    }
19
}
20