Total Complexity | 7 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Coverage | 84.62% |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
9 | class Proxy extends Binding |
||
10 | { |
||
11 | /** |
||
12 | * @template T |
||
13 | * @param class-string<T> $interface |
||
|
|||
14 | * @param null|\Closure(ContainerInterface, \Stringable|string|null): T $fallbackFactory Factory that will be used |
||
15 | * to create an instance if the value is resolved from a proxy. |
||
16 | */ |
||
17 | 398 | public function __construct( |
|
27 | 397 | ); |
|
28 | } |
||
29 | |||
30 | /** |
||
31 | * @return class-string |
||
32 | * @deprecated Use {@see getReturnClass()} instead. |
||
33 | */ |
||
34 | public function getInterface(): string |
||
35 | { |
||
36 | return $this->interface; |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * @return class-string |
||
41 | * @internal |
||
42 | */ |
||
43 | 393 | public function getReturnClass(): string |
|
44 | { |
||
45 | 393 | return $this->interface; |
|
46 | } |
||
47 | |||
48 | 1 | public function __toString(): string |
|
51 | } |
||
52 | } |
||
53 |