PluginProbe
Double Opt-In for Contact Form 7 – Secure, GDPR-Compliant Email Verification / 5.5.0
Double Opt-In for Contact Form 7 – Secure, GDPR-Compliant Email Verification v5.5.0
5.5.0 5.4.0 5.3.2 5.3.1 5.1.6 5.1.5 trunk 2.1.5 2.11 2.12 2.13 2.15 3.0.0 3.0.1 3.0.2 3.0.3 3.0.5 3.0.51 3.0.60 3.0.61 3.0.62 3.0.70 3.0.71 3.0.72 3.1.0 All 34 releases
double-opt-in / src / Container / ContainerInterface.php

ContainerInterface.php in Double Opt-In for Contact Form 7 – Secure, GDPR-Compliant Email Verification 5.5.0, at src/Container/ContainerInterface.php

47 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * PSR-11 Compatible Container Interface
4 *
5 * @package Forge12\DoubleOptIn\Container
6 * @since 4.0.0
7 */
8
9 namespace Forge12\DoubleOptIn\Container;
10
11 if ( ! defined( 'ABSPATH' ) ) {
12 exit;
13 }
14
15 /**
16 * Interface ContainerInterface
17 *
18 * @api
19 *
20 * Describes the interface of a container that exposes methods to read its entries.
21 * PSR-11 compatible. Passed to every addon's boot() method as the sole
22 * argument. Addons resolve Core services through it.
23 *
24 * Covered by the Addon API semver policy as of Core API 4.3.0.
25 */
26 interface ContainerInterface {
27
28 /**
29 * Finds an entry of the container by its identifier and returns it.
30 *
31 * @param string $id Identifier of the entry to look for.
32 *
33 * @return mixed Entry.
34 * @throws NotFoundException No entry was found for this identifier.
35 */
36 public function get( string $id );
37
38 /**
39 * Returns true if the container can return an entry for the given identifier.
40 *
41 * @param string $id Identifier of the entry to look for.
42 *
43 * @return bool
44 */
45 public function has( string $id ): bool;
46 }
47