InternalServerErrorException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 2
dl 0
loc 4
ccs 4
cts 4
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
namespace Wandu\Http\Exception;
3
4
class InternalServerErrorException extends HttpException
5
{
6
    /**
7
     * @param mixed $response
8
     * @param array $attributes
9
     */
10 4
    public function __construct($response = null, array $attributes = []) {
11 4
        parent::__construct($response, $attributes);
12 4
        $this->response = $this->response->withStatus(500);
13 4
    }
14
}
15