Completed
Pull Request — master (#987)
by
unknown
04:24
created

create()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
/**
3
 * @author      Ivan Kurnosov <[email protected]>
4
 * @copyright   Copyright (c) Alex Bilbie
5
 * @license     http://mit-license.org/
6
 *
7
 * @link        https://github.com/thephpleague/oauth2-server
8
 */
9
10
namespace League\OAuth2\Server\Exception;
11
12
class UniqueTokenIdentifierConstraintViolationException extends OAuthServerException
13
{
14
    /**
15
     * @return UniqueTokenIdentifierConstraintViolationException
16
     */
17
    public static function create()
18
    {
19
        $errorMessage = 'Could not create unique access token identifier';
20
21
        return new static($errorMessage, 100, 'access_token_duplicate', 500);
22
    }
23
}
24