Passed
Push — master ( 8ad6a2...629a1e )
by Jérémy
05:04 queued 02:09
created

KernelNotBooted::__construct()   A

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