PHP Class WoohooLabs\Harmony\Container\BasicContainer

Inheritance: implements Interop\Container\ContainerInterface
Mostra file Open project: woohoolabs/harmony

Public Methods

Method Description
get ( string $id ) : mixed Finds an entry of the container by its identifier and returns it.
has ( string $id ) : boolean Returns true if the container can return an entry for the given identifier.

Method Details

get() public method

Finds an entry of the container by its identifier and returns it.
public get ( string $id ) : mixed
$id string Identifier of the entry to look for.
return mixed Entry

has() public method

Returns false otherwise.
public has ( string $id ) : boolean
$id string Identifier of the entry to look for.
return boolean