add IVirtualFeed interface for plugins implementing virtual feeds

This commit is contained in:
Andrew Dolgov 2021-11-15 07:08:41 +03:00
parent 07ea364189
commit 3bd13b91c8
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;
}