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

TreeIsBrokenException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 11
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 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