NotFoundException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 15
ccs 5
cts 5
cp 1
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 9 1
1
<?php
2
3
namespace Thruster\Component\Container\Exception;
4
5
use Exception;
6
use Interop\Container\Exception\NotFoundException as NotFoundExceptionInterface;
7
8
/**
9
 * Class NotFoundException
10
 *
11
 * @package Thruster\Component\Container\Exception
12
 * @author  Aurimas Niekis <[email protected]>
13
 */
14
class NotFoundException extends Exception implements NotFoundExceptionInterface
15
{
16
    /**
17
     * @param string $id Identifier
18
     */
19 1
    public function __construct($id)
20
    {
21 1
        $message = sprintf(
22 1
            'Identifier "%s" not found',
23
            $id
24
        );
25
26 1
        parent::__construct($message);
27 1
    }
28
}
29