AuthnetException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
/**
6
 * This file is part of the AuthnetJSON package.
7
 *
8
 * (c) John Conde <[email protected]>
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace Authnetjson\Exception;
15
16
use Exception;
17
use Throwable;
18
19
/**
20
 * Generic Exception that may be thrown whenever an unexpect error occurs using the AuthnetJson class
21
 *
22
 * @author    John Conde <[email protected]>
23
 * @copyright 2015 - 2023 John Conde <[email protected]>
24
 * @license   http://www.apache.org/licenses/LICENSE-2.0.html Apache License, Version 2.0
25
 * @link      https://github.com/stymiee/authnetjson
26
 */
27
class AuthnetException extends Exception
28
{
29 24
    public function __construct(string $message = '', int $code = 0, Throwable $previous = null)
30
    {
31 24
        parent::__construct($message, $code, $previous);
32 24
    }
33
}
34