function finalize($bookVersion = EPub::BOOK_VERSION_EPUB2) { $manifest = "\n\t<manifest>\n"; foreach ($this->items as $item) { /** @var $item Item */ $manifest .= $item->finalize($bookVersion); } return $manifest . "\t</manifest>\n"; }