Skip to content

Commit 896ac77

Browse files
committed
docs: enhance getNewestItemDate method documentation for clarity and completeness
1 parent 4e7d222 commit 896ac77

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/FeedIo/Reader/Result/UpdateStats.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,11 @@ public function getMedianInterval(): int
182182
}
183183

184184
/**
185-
* @return int
185+
* Returns the timestamp of the newest item in the feed.
186+
* The value is capped at the current time to prevent future dates from being used.
187+
* If the feed has no items with valid timestamps, returns the feed's last modified timestamp.
188+
*
189+
* @return int Unix timestamp of the newest item (in seconds since epoch)
186190
*/
187191
public function getNewestItemDate(): int
188192
{

0 commit comments

Comments
 (0)