1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-08 09:36:39 +02:00

[core] Support for bridge maintainers' donation URLs (#2102)

This commit is contained in:
Bockiii
2021-06-25 21:45:25 +02:00
committed by GitHub
parent 5598fef3cf
commit ecaae735d9
10 changed files with 61 additions and 3 deletions

View File

@@ -40,6 +40,13 @@ abstract class BridgeAbstract implements BridgeInterface {
*/
const URI = '';
/**
* Donation URI to the site the bridge is intended to be used for.
*
* Use {@see BridgeAbstract::getDonationURI()} to read this parameter
*/
const DONATION_URI = '';
/**
* A brief description of what the bridge can do
*
@@ -341,6 +348,11 @@ abstract class BridgeAbstract implements BridgeInterface {
return static::URI;
}
/** {@inheritdoc} */
public function getDonationURI(){
return static::DONATION_URI;
}
/** {@inheritdoc} */
public function getCacheTimeout(){
return static::CACHE_TIMEOUT;