ClientShowException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
dl 0
loc 11
ccs 0
cts 4
cp 0
rs 10
c 1
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A sendHeader() 0 4 1
1
<?php
2
3
namespace ByJG\RestServer\Exception;
4
5
use Exception;
6
7
abstract class ClientShowException extends Exception
8
{
9
    //put your code here
10
11
    protected function sendHeader($status, $description)
12
    {
13
        header("HTTP/1.0 $status $description", true, $status);
14
        http_response_code($status);
15
    }
16
17
    abstract public function handleHeader();
18
}
19