DeclarationNotFound   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 9
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
namespace Aoe\Asdis\System\Factory\Exception;
3
4
class DeclarationNotFound extends \Exception
5
{
6
    /**
7
     * @param string $key
8
     * @param int $code
9
     */
10
    public function __construct($key, $code)
11
    {
12
        parent::__construct('No declaration with key "'.$key.'" found.', $code);
13
    }
14
}