diff --git a/src/Sitemap/CustomSitemap.php b/src/Sitemap/CustomSitemap.php index 16639d60..db389e8d 100644 --- a/src/Sitemap/CustomSitemap.php +++ b/src/Sitemap/CustomSitemap.php @@ -6,6 +6,8 @@ class CustomSitemap extends BaseSitemap { + protected Collection $urls; + public function __construct(protected string $handle) { $this->urls = collect(); diff --git a/src/Sitemap/CustomSitemapUrl.php b/src/Sitemap/CustomSitemapUrl.php index cf380a38..84e2176e 100644 --- a/src/Sitemap/CustomSitemapUrl.php +++ b/src/Sitemap/CustomSitemapUrl.php @@ -11,7 +11,16 @@ class CustomSitemapUrl extends BaseSitemapUrl { use FluentlyGetsAndSets; - public function __construct(protected string $loc) {} + public function __construct( + protected string $loc, + protected ?string $alternates = null, + protected ?string $lastmod = null, + protected ?string $changefreq = null, + protected ?string $priority = null, + protected ?string $site = null, + ) + { + } public function loc(?string $loc = null): string|self {