mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
27 lines
959 B
PHP
27 lines
959 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace WooCommerce\PayPalCommerce\Vendor\Dhii\Container;
|
|
|
|
use WooCommerce\PayPalCommerce\Vendor\Dhii\Collection\WritableMapFactoryInterface;
|
|
use WooCommerce\PayPalCommerce\Vendor\Dhii\Collection\WritableMapInterface;
|
|
use Exception;
|
|
use WooCommerce\PayPalCommerce\Vendor\Psr\Container\ContainerInterface as BaseContainerInterface;
|
|
|
|
/**
|
|
* Creates a container hierarchy based on a traditional data structure.
|
|
*/
|
|
interface DataStructureBasedFactoryInterface extends WritableMapFactoryInterface
|
|
{
|
|
/**
|
|
* Based on a traditional data structure, creates a container hierarchy.
|
|
*
|
|
* @param mixed[] $structure The traditional data structure representation.
|
|
*
|
|
* @return WritableMapInterface A hierarchy of writable maps that reflects the data structure.
|
|
*
|
|
* @throws Exception If problem creating.
|
|
*/
|
|
public function createContainerFromArray(array $structure): BaseContainerInterface;
|
|
}
|