Code Coverage |
||||||||||||||||
Lines |
Branches |
Paths |
Functions and Methods |
Classes and Traits |
||||||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Celemas\Wire; |
| 6 | |
| 7 | use Psr\Container\ContainerInterface as Container; |
| 8 | |
| 9 | /** |
| 10 | * Required interface for containers that internally use Wire to prevent dependency cycles. |
| 11 | * |
| 12 | * When Wire is provided with a container instance for entry lookups, circular dependencies |
| 13 | * can occur if the container uses Wire for autowiring and the entry is a class name |
| 14 | * rather than an instantiated object. |
| 15 | * |
| 16 | * The `definition` method must return the raw entry value without attempting instantiation. |
| 17 | */ |
| 18 | interface WireContainer extends Container |
| 19 | { |
| 20 | public function definition(string $id): mixed; |
| 21 | } |
Below are the source code lines that represent each code path as identified by Xdebug. Please note a path is not
necessarily coterminous with a line, a line may contain multiple paths and therefore show up more than once.
Please also be aware that some paths may include implicit rather than explicit branches, e.g. an if statement
always has an else as part of its logical flow even if you didn't write one.