NotTheRequestedInterface   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 2
dl 0
loc 8
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
/**
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
}