Completed
Push — master ( 224127...d5dc6c )
by Alejandro
28s
created

AuthenticationException::fromCredentials()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
ccs 0
cts 2
cp 0
crap 2
1
<?php
2
declare(strict_types=1);
3
4
namespace Shlinkio\Shlink\Rest\Exception;
5
6
class AuthenticationException extends RuntimeException
7
{
8 1
    public static function expiredJWT(\Exception $prev = null): self
9
    {
10 1
        return new self('The token has expired.', -1, $prev);
11
    }
12
}
13