ClassNotInjectable   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 2
dl 0
loc 5
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 2 1
1
<?php
2
3
namespace evelikto\di\creator;
4
5
/** Is thrown when the created dependency is not marked with the Injectable interface */
6
class ClassNotInjectable extends \evelikto\di\DiException
7
{
8
    /** @param  string  $name   Classname of the dependency. */
9
    public function __construct(string $name) {
10
        parent::__construct(['name' => $name]);
11
    }
12
}