public function write($data):void
    {
        if (null !== $this->file) {
            $this->file->write($data);
        }
    }
public function write($data):void
    {
        if (null !== $this->file) {
            $this->file->write($data);
        }
    }
public function write ( $ data ) : void { if ( null !== $ this -> file ) { $ this -> file -> write ( $ data ) ; } }
Write on sitemap file.

@param (xml) $data Valid XML

@since 3.0.0

@return void
Write on sitemap file .