MethodNotAllowedException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
eloc 2
c 2
b 0
f 0
dl 0
loc 9
ccs 2
cts 2
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php declare(strict_types=1);
2
3
namespace Phact\Router\Exception;
4
5
use Throwable;
6
7
/**
8
 * Will thrown if method not allowed for requested route
9
 *
10
 * Class MethodNotAllowedException
11
 * @package Phact\Router\Exception
12
 */
13
class MethodNotAllowedException extends HttpException
14
{
15 1
    public function __construct(
16
        array $allowed = [],
17
        $message = 'Method Not Allowed',
18
        $code = 0,
19
        Throwable $previous = null
20
    ) {
21 1
        parent::__construct(405, $message, $code, $previous);
22 1
    }
23
}
24