articles[] = [$title, $date, $path]; } public function render() { $gemlog = []; usort($this->articles, fn ($a, $b) => $b[1] <=> $a[1]); foreach ($this->articles as $article) { $gemlog[] = sprintf('=> %s %s %s', $article[2], $article[1], $article[0]); } $gemlog = implode("\n", $gemlog); return << atom.xml Atom feed => / home EOF; } }