Passed
Push — feature/container-extend ( 5ff564...0a9fc7 )
by Chema
09:18 queued 05:54
created

ContainerException::serviceNotExtendable()   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
cc 1
dl 0
loc 3
rs 10
c 1
b 0
f 0
eloc 1
nc 1
nop 0
ccs 2
cts 2
cp 1
crap 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Gacela\Framework\Container\Exception;
6
7
use Exception;
8
use Psr\Container\ContainerExceptionInterface;
9
10
final class ContainerException extends Exception implements ContainerExceptionInterface
11
{
12 1
    public static function serviceNotInvokable(): self
13
    {
14 1
        return new self('The passed service is not invokable.');
15
    }
16
17 1
    public static function serviceNotExtendable(): self
18
    {
19 1
        return new self('The passed service is not extendable.');
20
    }
21
}
22