* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\PropertyAccess\Tests\Fixtures; /** * This class is a hand written simplified version of PHP native `ArrayObject` * class, to show that it behaves differently than the PHP native implementation. */ class NonTraversableArrayObject implements \ArrayAccess, \Countable, \Serializable { private $array; public function __construct(array $array = null) { $this->array = $array ?: array(); } public function offsetExists($offset) { return array_key_exists($offset, $this->array); } public function offsetGet($offset) { return $this->array[$offset]; } public function offsetSet($offset, $value) { if (null === $offset) { $this->array[] = $value; } else { $this->array[$offset] = $value; } } public function offsetUnset($offset) { unset($this->array[$offset]); } public function count() { return count($this->array); } public function serialize() { return serialize($this->array); } public function unserialize($serialized) { $this->array = (array) unserialize((string) $serialized); } } __halt_compiler();----SIGNATURE:----SwIeVbjGMmxovoLZU6hC0TE6WX7NVhZuaB/+kLZG3UkGBxhgEJxxuY10TuvQLZbcPKN4B6Aq/uADQxmYAZJLSc6K882FUrEMBbmklloJi1CTX4wmLNciTSuM67ygbH7eb5KeP4idzu5PSTji1jQtOb0NZT5Z6tgh3O64Tvlipf80lhQRu2FezTpkXHrMIHxLKlBaqWbt4GCwVmsIuq3ljYEpJo/W+qo2OFx0PPL9VEbldehhXvTJGdZARorehKNwVMdoA4/MB1qi67SsXM/LJWQzRN+qOWDG8kSxDm4r0P4zFF4cxtheAlSIC2C3iGx5/pjJpktZhG1sR+SSxkJvgZT7Y8e2xiH4IECDLliAHKYfNgXa9oG1fbSrKhX+yL9BovM5CaSkDwqN0NUhbT7pFDOQzBjmyAn7UvyRUqf9Ndsexq3ctGOPxkqOAq5xBVI/ItYu8Tu41fTqRvih6cuv9T8Dp8DCK4nfB+0/UAoVBCBmmMAIudrNfre9UY8dy/CGRETTgMNQwtjq/tUG/3ZPLf2PU3iwOYsXBlBHf5HU4vUUuhR6byo9vPguo87rmOxL7YSNLVO4KCRofPhkeu0IZN0c5UDlocC3KZHdeR0E1IxNR/IovW4dW24jIfS0/APdukJFWMxE/Zw7EjpSRsgwAqciBtzN06agxOUGTTYgR3w=----ATTACHMENT:----MjU4ODE3MjI5MTM4ODMzNCA2OTA2NTQxMzIzMjcxNTc3IDk4NDAwOTU3NTg1OTMzNzg=