Passed
Push — master ( 6b16fc...2aa844 )
by Florian
02:14 queued 12s
created

UnauthenticatedException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 2
dl 0
loc 8
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
declare(strict_types=1);
3
/**
4
 * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
5
 * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
6
 *
7
 * Licensed under The MIT License
8
 * For full copyright and license information, please see the LICENSE.txt
9
 * Redistributions of files must retain the above copyright notice.
10
 *
11
 * @copyright     Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
12
 * @link          https://cakephp.org CakePHP(tm) Project
13
 * @since         1.0.0
14
 * @license       https://opensource.org/licenses/mit-license.php MIT License
15
 */
16
namespace Phauthentic\Authentication\Authenticator\Exception;
17
18
use RuntimeException;
19
use Throwable;
20
21
/**
22
 * An exception that signals that authentication was required but missing.
23
 */
24
class UnauthenticatedException extends RuntimeException implements AuthenticationExceptionInterface
25
{
26
    /**
27
     * {@inheritDoc}
28
     */
29 3
    public function __construct(string $message = '', int $code = 401, Throwable $previous = null)
30
    {
31 3
        parent::__construct($message, $code, $previous);
32 3
    }
33
}
34