InternalServerErrorException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 11
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
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