Passed
Push — master ( 80605f...a8b319 )
by Hergen
05:20
created

AuthException::auth()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 5
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 2
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