for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Shrikeh\Collection;
/**
* Trait ArrayAccessTrait
* @package Shrikeh\Collection
*/
trait ArrayAccessTrait
{
* @param $offset
* @return mixed
public function offsetExists($offset)
return $this->getStorage()->offsetExists($offset);
}
public function offsetGet($offset)
return $this->getStorage()->offsetGet($offset);
* @param $data
public function offsetSet($offset, $data)
return $this->getStorage()->offsetSet($offset, $data);
public function offsetUnset($offset)
return $this->getStorage()->offsetUnset($offset);
abstract protected function getStorage();