MethodNotAllowedException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
namespace Mosaic\Routing\Exceptions;
4
5
use Throwable;
6
7
class MethodNotAllowedException extends HttpException
8
{
9
    /**
10
     * @param string[]       $methods
11
     * @param int            $status
12
     * @param int            $code
13
     * @param Throwable|null $previous
14
     */
15 1
    public function __construct($methods, $status = 500, $code = 0, Throwable $previous = null)
16
    {
17 1
        $message = 'Method ' . '[' . implode($methods, ', ') . '] is not allowed';
18 1
        parent::__construct($message, $status, $code, $previous);
19 1
    }
20
}
21