| 1 |
<?php |
| 2 |
|
| 3 |
declare(strict_types=1); |
| 4 |
|
| 5 |
namespace WPDeveloper\BetterDocs\Dependencies\DI\Definition; |
| 6 |
|
| 7 |
use WPDeveloper\BetterDocs\Dependencies\DI\Factory\RequestedEntry; |
| 8 |
|
| 9 |
/** |
| 10 |
* Definition. |
| 11 |
* |
| 12 |
* @internal This interface is internal to PHP-WPDeveloper\BetterDocs\Dependencies\DI and may change between minor versions. |
| 13 |
* |
| 14 |
* @author Matthieu Napoli <matthieu@mnapoli.fr> |
| 15 |
*/ |
| 16 |
interface Definition extends RequestedEntry |
| 17 |
{ |
| 18 |
/** |
| 19 |
* Returns the name of the entry in the container. |
| 20 |
*/ |
| 21 |
public function getName() : string; |
| 22 |
|
| 23 |
/** |
| 24 |
* Set the name of the entry in the container. |
| 25 |
*/ |
| 26 |
public function setName(string $name); |
| 27 |
|
| 28 |
/** |
| 29 |
* Apply a callable that replaces the definitions nested in this definition. |
| 30 |
*/ |
| 31 |
public function replaceNestedDefinitions(callable $replacer); |
| 32 |
|
| 33 |
/** |
| 34 |
* Definitions can be cast to string for debugging information. |
| 35 |
*/ |
| 36 |
public function __toString(); |
| 37 |
} |
| 38 |
|