RuntimeException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
c 0
b 0
f 0
dl 0
loc 8
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
/**
4
 * This file is part of Cecil.
5
 *
6
 * (c) Arnaud Ligny <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
declare(strict_types=1);
13
14
namespace Cecil\Exception;
15
16
/**
17
 * RuntimeException class.
18
 *
19
 * This class extends the built-in RuntimeException and implements the ExceptionInterface.
20
 * It is used to handle runtime exceptions in the Cecil application.
21
 */
22
class RuntimeException extends \RuntimeException implements ExceptionInterface
23
{
24
    public function __construct(string $message, int $code = 0, ?\Throwable $previous = null, string $file = '', int $line = 0)
25
    {
26
        $this->file = $file;
27
        $this->line = $line;
28
29
        parent::__construct($message, $code, $previous);
30
    }
31
}
32