* * 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:----IQV+lXwe2TN+fbIOeG72g0T9X4+lhbrWTkB5PXtG/uq96AIz3Np3rAwfNqhci8HZEteUSYX+TbRo2CgypzJoU5wSmdvWUCisU4boePfZUL/WP0DX01n06OxCl/4xaWJa0S7TlEghEvouUJUdgBjMUidGBC116BTNpLyLPYz0QM1C8nUu5RdNcXo9mHijqSguZeGKUzJMFbV4k0xZsazUXQGjnZDT6dTP5J9G2rPSj6pYcIMBZBxLn9c1xitfhdDgUgesU2zQcgT0qDtIqnm/uv3pm4zNDsocP/iaKlbJbcWRxWSSR2Vk7L9At3APaXSz4upDW7wEaMUMCJimBvoDRBUQUBc4k6wbxGlQhkFggdoCUaLSFVYNXOlfXkPPxJdhrMcymmCSRvFUYpLdI+nZlqZ64FH32DM7svkerhSTxDgNCq+O6ZY1tjWssnerlKOk+HPJPNSUidEnBHts/rtGjunM6YO9mouJmkvnSwl+jNUl0UhGDW5984S0uuBfmYlkyzPyYjs0EcV+tE1Oyy6xgm9bx9XkoEct3K2p8Nn9U2+wjBTKfWDsUsjy8zj0sYh/CV4aUUNb+W2nBGtj1MLpGdTRL9ys9oeE7jLF4oOEF26GCvw2OS5aACqUALUuOSuakrSDxahhJU26oxTBhkYTNp0je1WM1qUX3FxWX3LPlis=----ATTACHMENT:----NzI1OTc0MDU0NDU1MjEwMiAxODc1ODU1MjgyMjAzNTczIDgyNDI0MTEwNjQxNTI1Nzg=