|
Apache/2.4.41 (Ubuntu) Linux vmi616275.contaboserver.net 5.4.0-84-generic #94-Ubuntu SMP Thu Aug 26 20:27:37 UTC 2021 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) server ip : 62.171.164.128 | your ip : 127.0.0.1 safemode OFF > / home / a / home / dev2.destoffenstraat.com / vendor / ezimuel / ringphp / src / Future / |
Filename | /home/a/home/dev2.destoffenstraat.com/vendor/ezimuel/ringphp/src/Future/FutureArray.php |
Size | 1.18 kb |
Permission | rw-r--r-- |
Owner | root : root |
Create time | 21-Aug-2025 12:26 |
Last modified | 07-Dec-2022 12:28 |
Last accessed | 22-Aug-2025 13:54 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
<?php
namespace GuzzleHttp\Ring\Future;
/**
* Represents a future array value that when dereferenced returns an array.
*/
#[\AllowDynamicProperties]
class FutureArray implements FutureArrayInterface
{
use MagicFutureTrait;
#[\ReturnTypeWillChange]
/**
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->_value[$offset]);
}
#[\ReturnTypeWillChange]
/**
* @return mixed
*/
public function offsetGet($offset)
{
return $this->_value[$offset];
}
#[\ReturnTypeWillChange]
/**
* @return void
*/
public function offsetSet($offset, $value)
{
$this->_value[$offset] = $value;
}
#[\ReturnTypeWillChange]
/**
* @return void
*/
public function offsetUnset($offset)
{
unset($this->_value[$offset]);
}
#[\ReturnTypeWillChange]
/**
* @return int
*/
public function count()
{
return count($this->_value);
}
#[\ReturnTypeWillChange]
/**
* @return \ArrayIterator
*/
public function getIterator()
{
return new \ArrayIterator($this->_value);
}
}
namespace GuzzleHttp\Ring\Future;
/**
* Represents a future array value that when dereferenced returns an array.
*/
#[\AllowDynamicProperties]
class FutureArray implements FutureArrayInterface
{
use MagicFutureTrait;
#[\ReturnTypeWillChange]
/**
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->_value[$offset]);
}
#[\ReturnTypeWillChange]
/**
* @return mixed
*/
public function offsetGet($offset)
{
return $this->_value[$offset];
}
#[\ReturnTypeWillChange]
/**
* @return void
*/
public function offsetSet($offset, $value)
{
$this->_value[$offset] = $value;
}
#[\ReturnTypeWillChange]
/**
* @return void
*/
public function offsetUnset($offset)
{
unset($this->_value[$offset]);
}
#[\ReturnTypeWillChange]
/**
* @return int
*/
public function count()
{
return count($this->_value);
}
#[\ReturnTypeWillChange]
/**
* @return \ArrayIterator
*/
public function getIterator()
{
return new \ArrayIterator($this->_value);
}
}