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

UninstantiableServiceException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
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 14
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
7
/**
8
 * Class UninstantiableServiceException
9
 *
10
 * @package Venta\Container\Exception
11
 */
12
class UninstantiableServiceException extends ContainerException
13
{
14
    /**
15
     * @inheritDoc
16
     */
17
    protected function createMessage(Exception $previous = null): string
18
    {
19
        return sprintf(
20
            'Unable to instantiate "%s" service, path: "%s".',
21
            $this->serviceId(),
22
            implode(' -> ', $this->referenceChain())
23
        );
24
    }
25
}