DataMapperNotFoundException   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
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 15
ccs 5
cts 5
cp 1
rs 10

1 Method

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