MethodNotAllowedException   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 8
c 0
b 0
f 0
wmc 2
lcom 0
cbo 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 2
1
<?php
2
namespace Netdudes\DataSourceryBundle\Query\Exception;
3
4
use Exception;
5
6
class MethodNotAllowedException extends \Exception
7
{
8
    public function __construct($class, $method, $reason = "", \Exception $previous = null)
9
    {
10
        $message = "Method '$method' is not allowed for class '$class'" . ($reason ? ': ' . $reason : "");
11
        parent::__construct($message, 0, $previous);
12
    }
13
}
14