for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Bavix\Iterator\Traits;
trait ArrayAccess
{
/**
* @inheritdoc
* @param string $offset
*/
public function offsetExists($offset)
return isset($this->data[$offset]);
}
public function offsetGet($offset)
return $this->data[$offset];
public function offsetSet($offset, $value)
if ($offset === null)
$offset === null
false
$this->data[] = $value;
return;
$this->data[$offset] = $value;
data
public function offsetUnset($offset)
unset($this->data[$offset]);