Passed
Push — master ( 805c58...4a8ad5 )
by Nikita
10:14 queued 04:50
created

HttpException::getHeaders()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Gameap\Exceptions\Http;
4
5
use Gameap\Exceptions\GameapException;
6
use Symfony\Component\HttpFoundation\Response;
7
use Symfony\Component\HttpKernel\Exception\HttpExceptionInterface;
8
9
class HttpException extends GameapException implements HttpExceptionInterface
10
{
11
    public $statusCode = Response::HTTP_INTERNAL_SERVER_ERROR;
12
13
    public $headers = [];
14
15
    public function getStatusCode()
16
    {
17
        return $this->statusCode;
18
    }
19
20
    public function getHeaders()
21
    {
22
        return $this->headers;
23
    }
24
}
25