File manager - Edit - /home/jardides/www/Cloud/3rdparty/rackspace/php-opencloud/lib/OpenCloud/Common/ArrayAccess.php
Back
<?php namespace OpenCloud\Common; class ArrayAccess implements \ArrayAccess { protected $elements; public function __construct($data = array()) { $this->elements = (array) $data; } /** * Sets a value to a particular offset. * * @param mixed $offset * @param mixed $value */ public function offsetSet($offset, $value) { if ($offset === null) { $this->elements[] = $value; } else { $this->elements[$offset] = $value; } } /** * Checks to see whether a particular offset key exists. * * @param mixed $offset * @return bool */ public function offsetExists($offset) { return array_key_exists($offset, $this->elements); } /** * Unset a particular key. * * @param mixed $offset */ public function offsetUnset($offset) { unset($this->elements[$offset]); } /** * Get the value for a particular offset key. * * @param mixed $offset * @return mixed|null */ public function offsetGet($offset) { return $this->offsetExists($offset) ? $this->elements[$offset] : null; } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings