Skip to content

Commit

Permalink
update: Dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
joshbruce committed Dec 13, 2022
1 parent 1db37ba commit eab56c5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
10 changes: 3 additions & 7 deletions src/Sitemap.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@

namespace Eightfold\Sitemap;

use Eightfold\XMLBuilder\Contracts\Buildable;
use Stringable;
// use Eightfold\XMLBuilder\Contracts\Buildable;

use DateTime;

Expand All @@ -28,7 +29,7 @@
* 0.3-0.0: FAQs, outdated info, old press releases, completely static pages that
* are still relevant enough to keep from deleting entirely.
*/
class Sitemap implements Buildable
class Sitemap implements Stringable
{
private const SCHEMA_VERSION = 'http://www.sitemaps.org/schemas/sitemap/0.9';

Expand Down Expand Up @@ -74,11 +75,6 @@ public function addUrl(
return $this;
}

public function build(): string
{
return (string) $this;
}

public function __toString(): string
{
return (string) Document::urlset(
Expand Down
10 changes: 3 additions & 7 deletions src/Url.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@

namespace Eightfold\Sitemap;

use Eightfold\XMLBuilder\Contracts\Buildable;
use Stringable;
// use Eightfold\XMLBuilder\Contracts\Buildable;

use DateTime;

use Eightfold\XMLBuilder\Element;

use Eightfold\Sitemap\Changefreq;

class Url implements Buildable
class Url implements Stringable
{
private Element|string $lastmod = '';

Expand Down Expand Up @@ -58,11 +59,6 @@ public function withPriority(float $priority): self
return $this;
}

public function build(): string
{
return (string) $this;
}

public function __toString(): string
{
return (string) Element::url(
Expand Down

0 comments on commit eab56c5

Please sign in to comment.