ClientShowException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 12
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A sendHeader() 0 5 1
handleHeader() 0 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