MethodNotAllowedException::__construct()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
c 0
b 0
f 0
rs 9.4285
cc 2
eloc 3
nc 2
nop 4
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