| 1 | <?php |
||
| 13 | class Container extends \ArrayObject implements ContainerInterface |
||
| 14 | { |
||
| 15 | public function factory() |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Finds an entry of the container by its identifier and returns it. |
||
| 36 | * |
||
| 37 | * @param string $id Identifier of the entry to look for. |
||
| 38 | * @return mixed No entry was found for this identifier. |
||
| 39 | * @throws \Exception |
||
| 40 | */ |
||
| 41 | public function get($id) |
||
| 49 | |||
| 50 | /** |
||
| 51 | * Returns true if the container can return an entry for the given identifier. |
||
| 52 | * Returns false otherwise. |
||
| 53 | * |
||
| 54 | * @param string $id Identifier of the entry to look for. |
||
| 55 | * |
||
| 56 | * @return boolean |
||
| 57 | */ |
||
| 58 | public function has($id) |
||
| 62 | } |