for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Equip\Tools;
trait ArrayProxyTrait
{
// SessionInterface
abstract public function has($key);
abstract public function get($key, $default = null);
abstract public function set($key, $value);
abstract public function del($key);
// ArrayAccess
public function offsetExists($offset)
return $this->has($offset);
}
public function offsetGet($offset)
return $this->get($offset);
public function offsetSet($offset, $value)
return $this->set($offset, $value);
public function offsetUnset($offset)
return $this->del($offset);