private float
$priority = 0.5;
private string
$resource;
private string
$identifier;
public function __toString(): string
{ return sprintf( '<url><loc>%s</loc><lastmod>%s</lastmod><changefreq>%s</changefreq><priority>%.1f</priority></url>',
$this->
getLoc(),
$this->
getLastmod()->
format('Y-m-d'
),
$this->
getChangefreq(),
$this->
getPriority() );
} public function getLoc(): string
{ return $this->loc;
} public function setLoc(string
$loc): void
{