PHP Class Nelmio\Alice\Generator\Resolver\ResolvingContext

显示文件 Open project: nelmio/alice Class Usage Examples

Public Methods

Method 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 method

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

add() public method

public add ( string $key )
$key string

checkForCircularReference() public method

public checkForCircularReference ( string $key )
$key string

createFrom() public static method

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
return self

has() public method

public has ( string $key ) : boolean
$key string
return boolean