for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace MathieuTu\Exporter\Tests\Fixtures;
class Collection implements \ArrayAccess
{
private $attributes;
public function __construct(array $attributes)
$this->attributes = $attributes;
}
public function offsetExists($offset): bool
return isset($this->attributes[$offset]);
public function offsetGet($offset)
return $this->attributes[$offset];
public function offsetSet($offset, $value)
return $this->attributes[$offset] = $value;
public function offsetUnset($offset)
unset($this->attributes[$offset]);