PluginProbe ʕ •ᴥ•ʔ
Pods – Custom Content Types and Fields / 3.3.2
Pods – Custom Content Types and Fields v3.3.2
trunk 1.14.8 2.7.31.3 2.8.23.3 2.9.19.3 3.0.10.3 3.1.4.1 3.2.0 3.2.1 3.2.1.1 3.2.2 3.2.4 3.2.5 3.2.6 3.2.7 3.2.7.1 3.2.8 3.2.8.1 3.2.8.2 3.3.0 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.9
pods / vendor / vendor-prefixed / psr / container / src / ContainerInterface.php
pods / vendor / vendor-prefixed / psr / container / src Last commit date
ContainerExceptionInterface.php 1 year ago ContainerInterface.php 1 year ago NotFoundExceptionInterface.php 1 year ago
ContainerInterface.php
43 lines
1 <?php
2 /**
3 * @license MIT
4 *
5 * Modified by Scott Kingsley Clark on 07-July-2025 using Strauss.
6 * @see https://github.com/BrianHenryIE/strauss
7 */
8
9 declare(strict_types=1);
10
11 namespace Pods\Prefixed\Psr\Container;
12
13 /**
14 * Describes the interface of a container that exposes methods to read its entries.
15 */
16 interface ContainerInterface
17 {
18 /**
19 * Finds an entry of the container by its identifier and returns it.
20 *
21 * @param string $id Identifier of the entry to look for.
22 *
23 * @throws NotFoundExceptionInterface No entry was found for **this** identifier.
24 * @throws ContainerExceptionInterface Error while retrieving the entry.
25 *
26 * @return mixed Entry.
27 */
28 public function get(string $id);
29
30 /**
31 * Returns true if the container can return an entry for the given identifier.
32 * Returns false otherwise.
33 *
34 * `has($id)` returning true does not mean that `get($id)` will not throw an exception.
35 * It does however mean that `get($id)` will not throw a `NotFoundExceptionInterface`.
36 *
37 * @param string $id Identifier of the entry to look for.
38 *
39 * @return bool
40 */
41 public function has(string $id);
42 }
43