for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Sunrise\Hydrator\Tests\Stub;
use ArrayAccess;
use ReturnTypeWillChange;
class Collection implements ArrayAccess
{
public array $elements = [];
public function offsetExists($offset): bool
return isset($this->elements[$offset]);
}
#[ReturnTypeWillChange]
public function offsetGet($offset)
return $this->elements[$offset] ?? null;
public function offsetSet($offset, $value): void
$this->elements[$offset] = $value;
public function offsetUnset($offset): void
unset($this->elements[$offset]);