PHP Class Nelmio\Alice\Generator\Resolver\ResolvingContext

Afficher le fichier Open project: nelmio/alice Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( string $key = null )
add ( string $key )
checkForCircularReference ( string $key )
createFrom ( self $resolving = null, string $key ) : self Returns the existing instance if is an object or create a new one otherwise. It also ensure that the key will be added also it won't increment the counter if already present.
has ( string $key ) : boolean

Method Details

__construct() public méthode

public __construct ( string $key = null )
$key string

add() public méthode

public add ( string $key )
$key string

checkForCircularReference() public méthode

public checkForCircularReference ( string $key )
$key string

createFrom() public static méthode

Returns the existing instance if is an object or create a new one otherwise. It also ensure that the key will be added also it won't increment the counter if already present.
public static createFrom ( self $resolving = null, string $key ) : self
$resolving self
$key string
Résultat self

has() public méthode

public has ( string $key ) : boolean
$key string
Résultat boolean