Total Complexity | 2 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Coverage | 62.5% |
Changes | 0 |
1 | <?php |
||
10 | trait InteractsWithCache |
||
11 | { |
||
12 | /** |
||
13 | * Use the bindings from the cache. |
||
14 | * |
||
15 | * @return void |
||
16 | * @throws ContainerExceptionInterface |
||
17 | * @throws NotFoundExceptionInterface |
||
18 | */ |
||
19 | protected function fromCache(): void |
||
23 | ); |
||
24 | } |
||
25 | |||
26 | /** |
||
27 | * Cache the binding. |
||
28 | * |
||
29 | * @param string $interface |
||
30 | * @param \Closure|string $concrete |
||
31 | * |
||
32 | * @return void |
||
33 | * @throws ContainerExceptionInterface |
||
34 | * @throws NotFoundExceptionInterface |
||
35 | */ |
||
36 | 15 | protected function cacheBindingFor(string $interface, \Closure|string $concrete): void |
|
47 |