KernelNotBooted   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 60%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A gettingContainer() 0 3 1
A __construct() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the Thunder micro CLI framework.
7
 * (c) Jérémy Marodon <[email protected]>
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace RxThunder\Core\Kernel\Exception;
13
14
class KernelNotBooted extends \LogicException
15
{
16 1
    protected function __construct(string $message)
17
    {
18 1
        parent::__construct($message);
19 1
    }
20
21
    public static function gettingContainer(): self
22
    {
23
        return new self('The kernel must be booted before getting the container instance');
24
    }
25
}
26