[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/psr/container/src/ -> ContainerInterface.php (summary)

(no description)

File Size: 36 lines (1 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

ContainerInterface:: (2 methods):
  get()
  has()


Interface: ContainerInterface  - X-Ref

Describes the interface of a container that exposes methods to read its entries.

get(string $id)   X-Ref
Finds an entry of the container by its identifier and returns it.

param: string $id Identifier of the entry to look for.
return: mixed Entry.

has(string $id)   X-Ref
Returns true if the container can return an entry for the given identifier.
Returns false otherwise.

`has($id)` returning true does not mean that `get($id)` will not throw an exception.
It does however mean that `get($id)` will not throw a `NotFoundExceptionInterface`.

param: string $id Identifier of the entry to look for.
return: bool



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer