2013-05-01 13:04:57 +00:00
|
|
|
<?php
|
2013-05-01 17:06:48 +00:00
|
|
|
abstract class FeedItem {
|
2021-11-15 02:40:45 +00:00
|
|
|
abstract function get_id(): string;
|
|
|
|
|
|
|
|
/** @return int|false a timestamp on success, false otherwise */
|
2013-05-01 13:04:57 +00:00
|
|
|
abstract function get_date();
|
2021-11-15 02:40:45 +00:00
|
|
|
|
|
|
|
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;
|
2013-05-01 13:04:57 +00:00
|
|
|
}
|
2017-04-26 17:24:18 +00:00
|
|
|
|