UnprocessableEntity   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php
2
3
namespace Phprest\Exception;
4
5
use Symfony\Component\HttpFoundation\Response;
6
7
class UnprocessableEntity extends Exception
8
{
9
    /**
10
     * @param int $code
11
     * @param array $details
12
     * @param string $message
13
     * @param \Exception $previous
14
     */
15 1
    public function __construct(
16
        $code = 0,
17
        array $details = [],
18
        $message = 'Unprocessable Entity',
19
        \Exception $previous = null
20
    ) {
21 1
        parent::__construct($message, $code, Response::HTTP_UNPROCESSABLE_ENTITY, $details, $previous);
22 1
    }
23
}
24