Test Failed
Push — master ( 73c405...d57cd2 )
by Konstantins
03:14
created

NotFoundException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 16
ccs 0
cts 8
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A createMessage() 0 8 1
1
<?php declare(strict_types = 1);
2
3
namespace Venta\Container\Exception;
4
5
use Exception;
6
use Interop\Container\Exception\NotFoundException as NotFoundExceptionInterface;
7
8
/**
9
 * Class NotFountException
10
 *
11
 * @package Venta\Container\Exception
12
 */
13
class NotFoundException extends ContainerException implements NotFoundExceptionInterface
14
{
15
16
    /**
17
     * @inheritdoc
18
     */
19
    protected function createMessage(Exception $previous = null): string
20
    {
21
        return sprintf(
22
            'Service not found for "%s" id, path: "%s".',
23
            $this->serviceId(),
24
            implode(' -> ', $this->referenceChain())
25
        );
26
    }
27
28
}