Completed
Push — master ( 592d95...c00565 )
by Abdelrahman
18:11 queued 10s
created

InvalidAuthTokenException::different()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Rinvex\Oauth\Exceptions;
6
7
use Illuminate\Auth\Access\AuthorizationException;
8
9
class InvalidAuthTokenException extends AuthorizationException
10
{
11
    /**
12
     * Create a new InvalidAuthTokenException for different auth tokens.
13
     *
14
     * @return static
15
     */
16
    public static function different()
17
    {
18
        return new static('The provided auth token for the request is different from the session auth token.');
19
    }
20
}
21