PluginProbe
ElasticPress / 4.7.2
ElasticPress v4.7.2
5.3.5 5.3.4 3.6.5 3.6.6 4.0.0 4.0.1 4.1.0 4.2.0 4.2.1 4.2.2 4.3.0 4.3.1 4.4.0 4.4.1 4.5.0 4.5.1 4.5.2 4.6.0 4.6.1 4.7.0 4.7.1 4.7.2 5.0.0 5.0.1 5.0.2 All 108 releases
elasticpress / vendor-prefixed / psr / container / src / ContainerInterface.php

ContainerInterface.php in ElasticPress 4.7.2, at vendor-prefixed/psr/container/src/ContainerInterface.php

41 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * @license http://www.opensource.org/licenses/mit-license.php MIT (see the LICENSE file)
4 *
5 * Modified by Taylor Lovett on 10-October-2023 using Strauss.
6 * @see https://github.com/BrianHenryIE/strauss
7 */
8
9 namespace ElasticPress\Vendor_Prefixed\Psr\Container;
10
11 /**
12 * Describes the interface of a container that exposes methods to read its entries.
13 */
14 interface ContainerInterface
15 {
16 /**
17 * Finds an entry of the container by its identifier and returns it.
18 *
19 * @param string $id Identifier of the entry to look for.
20 *
21 * @throws NotFoundExceptionInterface No entry was found for **this** identifier.
22 * @throws ContainerExceptionInterface Error while retrieving the entry.
23 *
24 * @return mixed Entry.
25 */
26 public function get($id);
27
28 /**
29 * Returns true if the container can return an entry for the given identifier.
30 * Returns false otherwise.
31 *
32 * `has($id)` returning true does not mean that `get($id)` will not throw an exception.
33 * It does however mean that `get($id)` will not throw a `NotFoundExceptionInterface`.
34 *
35 * @param string $id Identifier of the entry to look for.
36 *
37 * @return bool
38 */
39 public function has($id);
40 }
41