# double-opt-in/5.5.0/src/Container/ContainerInterface.php

Double Opt-In for Contact Form 7 – Secure, GDPR-Compliant Email Verification, version 5.5.0. 47 lines.

- Page: https://pluginprobe.com/plugins/double-opt-in/5.5.0/code/src/Container/ContainerInterface.php
- Raw: https://pluginprobe.com/plugins/double-opt-in/5.5.0/raw/src/Container/ContainerInterface.php
- Modified: 2026-07-13T09:16:42+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/double-opt-in/5.5.0/code/src/Container/ContainerInterface.php#L10-L20`.

```php
<?php
/**
 * PSR-11 Compatible Container Interface
 *
 * @package Forge12\DoubleOptIn\Container
 * @since   4.0.0
 */

namespace Forge12\DoubleOptIn\Container;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Interface ContainerInterface
 *
 * @api
 *
 * Describes the interface of a container that exposes methods to read its entries.
 * PSR-11 compatible. Passed to every addon's boot() method as the sole
 * argument. Addons resolve Core services through it.
 *
 * Covered by the Addon API semver policy as of Core API 4.3.0.
 */
interface ContainerInterface {

	/**
	 * Finds an entry of the container by its identifier and returns it.
	 *
	 * @param string $id Identifier of the entry to look for.
	 *
	 * @return mixed Entry.
	 * @throws NotFoundException No entry was found for this identifier.
	 */
	public function get( string $id );

	/**
	 * Returns true if the container can return an entry for the given identifier.
	 *
	 * @param string $id Identifier of the entry to look for.
	 *
	 * @return bool
	 */
	public function has( string $id ): bool;
}

```
