Completed
Push — develop ( c7250c...c08e7b )
by Bartko
07:18 queued 03:02
created

TreeIsBrokenException::__construct()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 7
ccs 6
cts 6
cp 1
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 4
nc 2
nop 3
crap 2
1
<?php
2
namespace StefanoTree\Exception;
3
4
use Exception;
5
6
class TreeIsBrokenException
7
    extends BaseException
0 ignored issues
show
Coding Style introduced by
The extends keyword must be on the same line as the class name
Loading history...
8
{
9 1
    public function __construct($message = "", $code = 0, Exception $previous = null)
10
    {
11 1
        if (!$message) {
12 1
            $message = 'Tree structure is broken. Rebuild your tree.';
13 1
        }
14 1
        parent::__construct($message, $code, $previous);
15 1
    }
16
}
17