PluginProbe
Content Control – The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More / 2.0.2
Content Control – The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More v2.0.2
trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.10 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 2.0.0 2.0.1 2.0.10 2.0.11 2.0.12 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 All 47 releases
content-control / vendor-prefixed / psr / container / src / ContainerInterface.php

ContainerInterface.php in Content Control – The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More 2.0.2, at vendor-prefixed/psr/container/src/ContainerInterface.php

43 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 MIT
4 *
5 * Modified by code-atlantic on 18-September-2023 using Strauss.
6 * @see https://github.com/BrianHenryIE/strauss
7 */
8
9 declare(strict_types=1);
10
11 namespace ContentControl\Vendor\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): bool;
42 }
43