HttpTokenException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 5
dl 0
loc 8
rs 10
c 0
b 0
f 0
ccs 2
cts 2
cp 1
crap 1
1
<?php
2
3
namespace roaresearch\yii2\oauth2server\exceptions;
4
5
class HttpTokenException extends \yii\web\HttpException
6
{
7
    /**
8
     * Constructor.
9
     * @param integer $status HTTP status code, such as 404, 500, etc.
10
     * @param string $message error message
11
     * @param string $errorUri error uri
12
     * @param integer $code error code
13
     * @param \Exception $previous The previous exception used for the exception chaining.
14
     */
15 3
    public function __construct(
16
        int $status,
17
        $message = null,
18
        public ?string $errorUri = null,
19
        $code = 0,
20
        \Exception $previous = null
21
    ) {
22 3
        parent::__construct($status, $message, $code, $previous);
23
    }
24
}
25