InvalidApiKeyException::getHeaders()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
c 0
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Gameap\Exceptions\GdaemonAPI;
4
5
use Gameap\Exceptions\GameapException;
6
use Symfony\Component\HttpFoundation\Response;
7
use Symfony\Component\HttpKernel\Exception\HttpExceptionInterface;
8
9
class InvalidApiKeyException extends GameapException implements HttpExceptionInterface
10
{
11
    public function getStatusCode()
12
    {
13
        return Response::HTTP_UNAUTHORIZED;
14
    }
15
16
    public function getHeaders()
17
    {
18
        return [];
19
    }
20
}
21