AuthnetException::__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 0
Metric Value
cc 1
eloc 1
nc 1
nop 3
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
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