NotTheRequestedInterface::__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 2
1
<?php
2
3
namespace evelikto\di\creator;
4
5
/**
6
 * Is thrown when the created dependency does not implement the originally requested interface.
7
 */
8
class NotTheRequestedInterface extends \evelikto\di\DiException
9
{
10
    /**
11
     * @param  string  $name  Classname of the created dependency
12
     * @param  string  $name  Originally requested interface name
13
     */
14
    public function __construct(string $classname, string $interface) {
15
        parent::__construct(['classname' => $classname, 'interface' => $interface]);
16
    }
17
}