mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 10:55:00 +08:00
27 lines
650 B
PHP
27 lines
650 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace WooCommerce\PayPalCommerce\Vendor\Dhii\Collection;
|
|
|
|
use Exception;
|
|
use WooCommerce\PayPalCommerce\Vendor\Psr\Container\ContainerInterface;
|
|
|
|
/**
|
|
* Creates containers based on data maps.
|
|
*/
|
|
interface ContainerFactoryInterface
|
|
{
|
|
/**
|
|
* Creates a container based on data.
|
|
*
|
|
* @param array<string, mixed> $data The data for the container.
|
|
*
|
|
* @return ContainerInterface The new container.
|
|
*
|
|
* @throws Exception If problem creating.
|
|
*
|
|
* @psalm-suppress PossiblyUnusedMethod
|
|
*/
|
|
public function createContainerFromArray(array $data): ContainerInterface;
|
|
}
|