UnknownSeverityException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 13
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
namespace Brickoo\Component\Log\Exception;
4
5
use Brickoo\Component\Log\Exception;
6
7
/**
8
 * Exception
9
 *
10
 * Exception thrown if severity could not be resolved.
11
 * @author Celestino Diaz <[email protected]>
12
 */
13
class UnknownSeverityException extends Exception {
14
15
    /**
16
     * Class constructor.
17
     * Calls the parent exception constructor.
18
     * @param integer $severity
19
     * @param null|\Exception $previousException
20
     */
21 1
    public function __construct($severity, \Exception $previousException = null) {
22 1
        parent::__construct(sprintf("Severity key `%d` unknown.", $severity), 0, $previousException);
23 1
    }
24
25
}
26