Passed
Push — master ( 1f66d5...f48fde )
by Melech
01:31
created

InvalidReferenceException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 3
c 1
b 0
f 1
dl 0
loc 10
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the Valkyrja Framework package.
7
 *
8
 * (c) Melech Mizrachi <[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 Valkyrja\Container\Throwable\Exception;
15
16
use Throwable;
17
18
class InvalidReferenceException extends InvalidArgumentException
19
{
20
    /**
21
     * @param class-string $id The invalid reference class name
0 ignored issues
show
Documentation Bug introduced by
The doc comment class-string at position 0 could not be parsed: Unknown type name 'class-string' at position 0 in class-string.
Loading history...
22
     */
23
    public function __construct(string $id, int $code = 0, Throwable|null $previous = null)
24
    {
25
        $message = "Service with `$id` not found";
26
27
        parent::__construct($message, $code, $previous);
28
    }
29
}
30