summaryrefslogtreecommitdiff
path: root/classes/FeedItem.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2023-10-25 12:55:09 +0300
committerAndrew Dolgov <[email protected]>2023-10-25 12:55:09 +0300
commit865ecc87963dc3b26e66296616eef2a1cc41ac3f (patch)
treebf2ecd8a391103bdb2c8b70cd33c47467310754b /classes/FeedItem.php
parent0a5507d3bd79d04c860455664f919bf8e7274fda (diff)
move to psr-4 autoloader
Diffstat (limited to 'classes/FeedItem.php')
-rw-r--r--classes/FeedItem.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/classes/FeedItem.php b/classes/FeedItem.php
new file mode 100644
index 000000000..fd7c54883
--- /dev/null
+++ b/classes/FeedItem.php
@@ -0,0 +1,24 @@
+<?php
+abstract class FeedItem {
+ abstract function get_id(): string;
+
+ /** @return int|false a timestamp on success, false otherwise */
+ abstract function get_date();
+
+ abstract function get_link(): string;
+ abstract function get_title(): string;
+ abstract function get_description(): string;
+ abstract function get_content(): string;
+ abstract function get_comments_url(): string;
+ abstract function get_comments_count(): int;
+
+ /** @return array<int, string> */
+ abstract function get_categories(): array;
+
+ /** @return array<int, FeedEnclosure> */
+ abstract function get_enclosures(): array;
+
+ abstract function get_author(): string;
+ abstract function get_language(): string;
+}
+