| 1 |
<?php |
| 2 |
|
| 3 |
declare(strict_types=1); |
| 4 |
|
| 5 |
namespace WPDeveloper\BetterDocs\Dependencies\DI\Factory; |
| 6 |
|
| 7 |
/** |
| 8 |
* Represents the container entry that was requested. |
| 9 |
* |
| 10 |
* Implementations of this interface can be injected in factory parameters in order |
| 11 |
* to know what was the name of the requested entry. |
| 12 |
* |
| 13 |
* @api |
| 14 |
* |
| 15 |
* @author Matthieu Napoli <matthieu@mnapoli.fr> |
| 16 |
*/ |
| 17 |
interface RequestedEntry |
| 18 |
{ |
| 19 |
/** |
| 20 |
* Returns the name of the entry that was requested by the container. |
| 21 |
*/ |
| 22 |
public function getName() : string; |
| 23 |
} |
| 24 |
|