Completed
Push — master ( e214c2...9b8774 )
by Kevin
02:27
created

ValidationFailed::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 3
crap 1
1
<?php
2
3
namespace Zenstruck\JWT\Exception;
4
5
use Zenstruck\JWT\Token;
6
7
/**
8
 * @author Kevin Bond <[email protected]>
9
 */
10
abstract class ValidationFailed extends InvalidToken
11
{
12
    /**
13
     * @param Token           $token
14
     * @param string          $message
15
     * @param \Exception|null $previous
16
     */
17 17
    public function __construct(Token $token, $message = 'Token validation failed.', \Exception $previous = null)
18
    {
19 17
        parent::__construct($token, $message, $previous);
20 17
    }
21
}
22