for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Thepixeldeveloper\Sitemap\Subelements;
use XMLWriter;
use Thepixeldeveloper\Sitemap\OutputInterface;
use Thepixeldeveloper\Sitemap\AppendAttributeInterface;
/**
* Class Mobile
*
* @package Thepixeldeveloper\Sitemap\Subelements
*/
class Mobile implements OutputInterface, AppendAttributeInterface
{
* {@inheritdoc}
public function appendAttributeToCollectionXML(XMLWriter $XMLWriter)
$XMLWriter->writeAttribute('xmlns:mobile', 'http://www.google.com/schemas/sitemap-mobile/1.0');
}
public function generateXML(XMLWriter $XMLWriter)
$XMLWriter->writeElement('mobile:mobile');