* * 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:----Y8CkTkiOqwQNYUp3WBDu8gD83e3fN2Jp+As1eKobalkzmtgXuhRQA8tyZy1PJAJVM4bPbycevXfDAdvAJb+FBjBHukTazJ5JhCOVMlh0GcWezU2VHE8+dB5YScwc1VpziQ3JLJCCNYmpz/Gw+fjIhc1FwIkHtCnmSx6eDE5H9uEEGevzr13BSD+8awQad13nGuQ+Cago1hOnokbYHQIsA+5JMHtgDfe3Gl/B0iXHGhaa+uux20zAW8IfH6ZyBqpF3RjAHotBuTb6RwliAVepjwKXHIcwf/uw0TLaWjKIjojilxan7SaCXoIxcuSCtOwUXU7NYYBHx0DeoF+KtI0B/MQmvbvoNyE9t6YMNqBAz29n1CDJEOM2a7AER6xtYQTlo2s9pdcetL9ORH6x7LGGCikBioUpXx6wLqJjyK8irJZsrfTx4Ij1637N2DTyjm0BqN4VwfHoTg6QcsRI2S6rBA0CFLsTcep/dUujRofvjLe1kJTEbaCaKXUbkIiQsOsv1NnU5miY2nwG1PB7LK4ajGWZ11tCM+24A4LIbo6hA73EVkw3xeOfHMtK+NAzwZ+s+q1wWvcSp8UXtNrDmDvTRbnSEEgRqwTQTUQXPSQsS+9o4nb7LfYSpGAGsVBV2e6/7dlhUZnRybCaQuOz58CvXQgKMV0MKQEP5sUyqjw4Tc8=----ATTACHMENT:----Mzg0NjA1NDUzNjI4MzU5MCAyMzU5MTA5NzE2NDE5ODcxIDkzMjE2MTMyMDgwNTkwNjk=