diff options
author | 2023-09-25 21:18:48 +0200 | |
---|---|---|
committer | 2023-09-25 21:18:48 +0200 | |
commit | cd30c25b08dc5ecd048e54c8abbbecd72309ab5e (patch) | |
tree | 5defffb410945e3c4dcff8c2b3b410034588aaba /lib/FormatInterface.php | |
parent | e1b911fc1f3416d49c5ad5cc68587f64ab8890eb (diff) | |
download | rss-bridge-cd30c25b08dc5ecd048e54c8abbbecd72309ab5e.tar.gz rss-bridge-cd30c25b08dc5ecd048e54c8abbbecd72309ab5e.tar.zst rss-bridge-cd30c25b08dc5ecd048e54c8abbbecd72309ab5e.zip |
refactor (#3708)
Diffstat (limited to 'lib/FormatInterface.php')
-rw-r--r-- | lib/FormatInterface.php | 77 |
1 files changed, 0 insertions, 77 deletions
diff --git a/lib/FormatInterface.php b/lib/FormatInterface.php deleted file mode 100644 index 49e36933..00000000 --- a/lib/FormatInterface.php +++ /dev/null @@ -1,77 +0,0 @@ -<?php - -/** - * This file is part of RSS-Bridge, a PHP project capable of generating RSS and - * Atom feeds for websites that don't have one. - * - * For the full license information, please view the UNLICENSE file distributed - * with this source code. - * - * @package Core - * @license http://unlicense.org/ UNLICENSE - * @link https://github.com/rss-bridge/rss-bridge - */ - -/** - * The format interface - * - * @todo Add missing function to the interface - * @todo Explain parameters and return values in more detail - * @todo Return self more often (to allow call chaining) - */ -interface FormatInterface -{ - /** - * Generate a string representation of the current data - * - * @return string The string representation - */ - public function stringify(); - - public function setItems(array $items); - - /** - * Return items - * - * @throws \LogicException if the items are not set - * @return FeedItem[] The items - */ - public function getItems(); - - /** - * Set extra information - * - * @param array $infos Extra information - * @return self The format object - */ - public function setExtraInfos(array $infos); - - /** - * Return extra information - * - * @return array Extra information - */ - public function getExtraInfos(); - - /** - * Return MIME type - * - * @return string The MIME type - */ - public function getMimeType(); - - /** - * Set charset - * - * @param string $charset The charset - * @return self The format object - */ - public function setCharset($charset); - - /** - * Return current charset - * - * @return string The charset - */ - public function getCharset(); -} |