/** * Get an iterator for the items. * * @return ArrayIterator */ public function getIterator() { $parentAttributes = $this->parent !== null ? $this->parent->getIterator()->getArrayCopy() : []; return new ArrayIterator(array_merge($parentAttributes, $this->vo->getAttributes())); }