IdentifierFrozenException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 9
ccs 5
cts 5
cp 1
rs 9.6666
c 1
b 0
f 0
cc 1
eloc 5
nc 1
nop 1
crap 1
1
<?php
2
3
namespace Thruster\Component\Container\Exception;
4
5
use Exception;
6
7
/**
8
 * Class IdentifierFrozenException
9
 *
10
 * @package Thruster\Component\Container\Exception
11
 * @author  Aurimas Niekis <[email protected]>
12
 */
13
class IdentifierFrozenException extends Exception
14
{
15
    /**
16
     * @param string $id Identifier
17
     */
18 2
    public function __construct($id)
19
    {
20 2
        $message = sprintf(
21 2
            'Identifier "%s" is frozen',
22
            $id
23
        );
24
25 2
        parent::__construct($message);
26 2
    }
27
}
28