Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
<?php
2
 
3
declare(strict_types=1);
4
 
5
namespace DI\Definition;
6
 
7
use DI\Factory\RequestedEntry;
8
 
9
/**
10
 * Definition.
11
 *
12
 * @internal This interface is internal to PHP-DI and may change between minor versions.
13
 *
14
 * @author Matthieu Napoli <matthieu@mnapoli.fr>
15
 */
16
interface Definition extends RequestedEntry, \Stringable
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) : void;
27
 
28
    /**
29
     * Apply a callable that replaces the definitions nested in this definition.
30
     */
31
    public function replaceNestedDefinitions(callable $replacer) : void;
32
 
33
    /**
34
     * Definitions can be cast to string for debugging information.
35
     */
36
    public function __toString() : string;
37
}