AuthenticationFailed   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 15
ccs 0
cts 6
cp 0
rs 10
c 0
b 0
f 0
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 2
1
<?php
2
declare(strict_types=1);
3
4
5
namespace Xervice\Service\Middleware\Security\Exception;
6
7
8
use Throwable;
9
use Xervice\Core\Exception\XerviceException;
10
11
class AuthenticationFailed extends XerviceException
12
{
13
    /**
14
     * AuthenticationFailed constructor.
15
     *
16
     * @param string $message
17
     * @param int $code
18
     * @param \Throwable $previous
19
     */
20
    public function __construct(string $message = "", int $code = 0, \Throwable $previous = null)
21
    {
22
        if ($message == '') {
23
            $message = 'Authentication failed';
24
        }
25
        parent::__construct($message, $code, $previous);
26
    }
27
28
}