summaryrefslogtreecommitdiff
path: root/classes/IVirtualFeed.php
diff options
context:
space:
mode:
Diffstat (limited to 'classes/IVirtualFeed.php')
-rw-r--r--classes/IVirtualFeed.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/classes/IVirtualFeed.php b/classes/IVirtualFeed.php
new file mode 100644
index 000000000..ccd0680fc
--- /dev/null
+++ b/classes/IVirtualFeed.php
@@ -0,0 +1,11 @@
+<?php
+interface IVirtualFeed {
+ function get_unread(int $feed_id) : int;
+ function get_total(int $feed_id) : int;
+ /**
+ * @param int $feed_id
+ * @param array<string,int|string|bool> $options
+ * @return array<int,int|string>
+ */
+ function get_headlines(int $feed_id, array $options) : array;
+}