File "ReferenceArrayContainer.php"
Full Path: /home/siazco/grocery.siazco.se/wp-content/plugins/flexible-shipping-pro/vendor_prefixed/wpdesk/wp-persistence/src/Adapter/ReferenceArrayContainer.php
File size: 556 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace FSProVendor\WPDesk\Persistence\Adapter;
/**
* Container that uses array as a persistent memory. When the value in container is changed, the value in
* given array is also changed using reference.
*
* @package WPDesk\Persistence
*/
final class ReferenceArrayContainer extends \FSProVendor\WPDesk\Persistence\Adapter\ArrayContainer
{
/**
* @param array $referenced You have to pass this array. It can not be value.
*/
public function __construct(array &$referenced)
{
$this->array =& $referenced;
}
}