Passed
Push — master ( 3e5b57...979fc2 )
by Hergen
05:00
created

AuthException::auth()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 2
dl 0
loc 5
rs 10
1
<?php
2
3
namespace werk365\jwtauthroles\Exceptions;
4
5
use Symfony\Component\HttpKernel\Exception\HttpException;
6
7
class AuthException extends HttpException
8
{
9
    public static function auth(int $status, string $message): self
10
    {
11
        $exception = new static($status, $message, null, []);
12
13
        return $exception;
14
    }
15
}
16