add IVirtualFeed interface for plugins implementing virtual feeds

This commit is contained in:
Andrew Dolgov 2021-11-15 07:08:41 +03:00
parent 8b743f7249
commit 8dfefe7968
1 changed files with 11 additions and 0 deletions

11
classes/ivirtualfeed.php Normal file
View File

@ -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;
}