ClassNotInjectable::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 2
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 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
}