PHP Class WoohooLabs\Harmony\Container\BasicContainer

Inheritance: implements Interop\Container\ContainerInterface
Afficher le fichier Open project: woohoolabs/harmony

Méthodes publiques

Méthode 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 méthode

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.
Résultat mixed Entry

has() public méthode

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