MissingImplementation   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 14
ccs 0
cts 6
cp 0
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
namespace Aoe\Asdis\System\Factory\Exception;
3
4
class MissingImplementation extends \Exception
5
{
6
    /**
7
     * @param string $objectClassName
8
     * @param string $implementationClassName
9
     * @param string $factoryClassName
10
     * @param integer $code
11
     */
12
    public function __construct($objectClassName, $implementationClassName, $factoryClassName, $code)
13
    {
14
        parent::__construct(
15
            'Unable to create object of class "'.$objectClassName.'" in factory "'.$factoryClassName.'". '.
16
            'Implementation of "'.$implementationClassName.'" is missing.',
17
            $code
18
        );
19
    }
20
}