O:39:"phpDocumentor\Descriptor\FileDescriptor":22:{s:7:" * hash";s:32:"be4d8ef67e0943b74e8ad3e152cf8a61";s:7:" * path";s:15:"DI/CDIArray.php";s:9:" * source";s:1385:"<?php
/**
* A CDI version implementing the array interface.
*/
namespace Anax\DI;
class CDIArray extends CDI implements \ArrayAccess
{
/**
* Properties
*
*/
public $data = []; // Store all configuration options here
/**
* Construct.
*
* @param array $options to configure options.
*/
public function __construct($options = [])
{
parent::__construct();
}
/**
* Construct.
*
* @param array $options to configure options.
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Construct.
*
* @param array $options to configure options.
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Construct.
*
* @param array $options to configure options.
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Construct.
*
* @param array $options to configure options.
*/
public function offsetGet($offset)
{
return isset($this->container[$offset])
? $this->container[$offset]
: null;
}
}
";s:19:"