MethodNotSupportedException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
c 2
b 0
f 0
lcom 0
cbo 0
dl 0
loc 8
ccs 3
cts 3
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
/**
4
 * Codeburner Framework.
5
 *
6
 * @author Alex Rohleder <[email protected]>
7
 * @copyright 2016 Alex Rohleder
8
 * @license http://opensource.org/licenses/MIT
9
 */
10
11
namespace Codeburner\Router\Exceptions;
12
13
/**
14
 * Exception thrown when none route is matched, but a similar route is found in another HTTP method.
15
 *
16
 * @author Alex Rohleder <[email protected]>
17
 */
18
19
class MethodNotSupportedException extends \Exception
20
{
21
22 1
    public function __construct($method) {
23 1
        $this->message = "The HTTP method '$method' is not supported by the route collector.";
24 1
    }
25
26
}
27