public function addItem(Item $item) { $loc = $item->getUrl(); $lastmod = $item->getLastmod(); $changefreq = $item->getChangefreq(); $priority = $item->getPriority(); $alternateLinks = $item->getAlternateMediaLinks(); $this->add($loc, $lastmod, $changefreq, $priority); $this->addAlternateMediaLinks($alternateLinks); }