$fileHandle =
$this->files
[$shopId]['fileHandle'
];
$this->
write($fileHandle, '</urlset>'
);
gzclose($fileHandle);
if (!\
array_key_exists($shopId,
$this->sitemaps
)) { $this->sitemaps
[$shopId] =
[];
} $this->sitemaps
[$shopId][] =
new Sitemap( $this->files
[$shopId]['fileName'
],
$this->files
[$shopId]['urlCount'
] );
unset($this->files
[$shopId]);
return true;
} /**
* @param int $shopId
*
* @return bool
*/