Failed Conditions
Push — master ( 617482...b9a7c3 )
by Sébastien
07:59 queued 12s
created

TokenAudienceException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 11
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getStatusCode() 0 4 1
A getReason() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace App\Service\Token\Exception;
6
7
class TokenAudienceException extends TokenValidationException
8
{
9
    public function getReason(): string
10
    {
11
        return 'audience';
12
    }
13
14
    public function getStatusCode(): int
15
    {
16
        // Forbidden
17
        return 403;
18
    }
19
}
20