AccessDeniedException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 4
crap 1
1
<?php
2
3
namespace Parroauth2\Client\Exception;
4
5
/**
6
 * Class AccessDeniedException
7
 */
8
class AccessDeniedException extends OAuthServerException
9
{
10
    public const ERROR_TYPE = 'access_denied';
11
12
    /**
13
     * AccessDeniedException constructor.
14
     *
15
     * @param string $message
16
     * @param string|null $hint
17
     * @param \Exception|null $previous
18
     * @param int $code
19
     */
20 3
    public function __construct($message, $hint = null, \Exception $previous = null, $code = 0)
21
    {
22 3
        parent::__construct(403, self::ERROR_TYPE, $message, $hint, $previous, $code);
23 3
    }
24
}
25