From 0b124129a0545b7190046d212010a8115844c987 Mon Sep 17 00:00:00 2001 From: Johan Vlaar Date: Tue, 5 Aug 2025 12:28:24 +0200 Subject: [PATCH] add constants to set the setChangeFreq --- src/Url.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Url.php b/src/Url.php index d61bb14..35d9bb7 100644 --- a/src/Url.php +++ b/src/Url.php @@ -8,6 +8,14 @@ class Url implements VisitorInterface { + public const CHANGE_FREQ_ALWAYS = 'always'; + public const CHANGE_FREQ_HOURLY = 'hourly'; + public const CHANGE_FREQ_DAILY = 'daily'; + public const CHANGE_FREQ_WEEKLY = 'weekly'; + public const CHANGE_FREQ_MONTHLY = 'monthly'; + public const CHANGE_FREQ_YEARLY = 'yearly'; + public const CHANGE_FREQ_NEVER = 'never'; + /** * Location (URL). * @@ -24,6 +32,7 @@ class Url implements VisitorInterface /** * Change frequency of the location. + * @see constants CHANGE_FREQ_* * * @var string */ @@ -81,6 +90,8 @@ public function getChangeFreq() } /** + * @see constants CHANGE_FREQ_* + * * @param string $changeFreq */ public function setChangeFreq(string $changeFreq)