RefNotFoundException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 3
dl 0
loc 2
ccs 2
cts 2
cp 1
crap 1
rs 10
1
<?php
2
/**
3
 * @author Todd Burry <[email protected]>
4
 * @copyright 2009-2018 Vanilla Forums Inc.
5
 * @license MIT
6
 */
7
8
namespace Garden\Schema;
9
10
use Throwable;
11
12
/**
13
 * An exception that represents a reference not being found.
14
 */
15
class RefNotFoundException extends \Exception {
16
    /**
17
     * RefNotFoundException constructor.
18
     *
19
     * @param string $message The error message.
20
     * @param int $number The error number.
21
     * @param Throwable|null $previous The previous exeption.
22
     */
23 7
    public function __construct(string $message = "", $number = 404, Throwable $previous = null) {
24 7
        parent::__construct($message, $number, $previous);
25 7
    }
26
}
27