DataCacherNotFoundException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
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 8
ccs 5
cts 5
cp 1
rs 9.4286
c 1
b 0
f 0
cc 1
eloc 5
nc 1
nop 1
crap 1
1
<?php
2
3
namespace Thruster\Component\DataCacher\Exception;
4
5
/**
6
 * Class DataCacherNotFoundException
7
 *
8
 * @package Thruster\Component\DataCacher\Exception
9
 * @author  Aurimas Niekis <[email protected]>
10
 */
11
class DataCacherNotFoundException extends \Exception
12
{
13
    /**
14
     * @param string $name
15
     */
16 1
    public function __construct($name)
17
    {
18 1
        $message = sprintf(
19 1
            'DataCacher "%s" not found',
20
            $name
21
        );
22 1
        parent::__construct($message);
23 1
    }
24
}
25