Completed
Push — master ( c9036e...5033a3 )
by Bartko
05:59
created

TreeIsBrokenException::__construct()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 4
nc 2
nop 3
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
    public function __construct($message = "", $code = 0, Exception $previous = null)
10
    {
11
        if (!$message) {
12
            $message = 'Tree structure is broken. Rebuild your tree.';
13
        }
14
        parent::__construct($message, $code, $previous);
15
    }
16
}
17