aboutsummaryrefslogtreecommitdiff
path: root/lib/BridgeAbstract.php
diff options
context:
space:
mode:
authorGravatar Bockiii <henning@bocklage.com> 2021-06-25 21:45:25 +0200
committerGravatar GitHub <noreply@github.com> 2021-06-26 00:45:25 +0500
commitecaae735d97e240c809cd1fcda06c86675b6d659 (patch)
tree55e6dfdf39cf6bada305b95bf7fffa5fb223e57d /lib/BridgeAbstract.php
parent5598fef3cfdb8bca9557c21747db06bb936113da (diff)
downloadrss-bridge-ecaae735d97e240c809cd1fcda06c86675b6d659.tar.gz
rss-bridge-ecaae735d97e240c809cd1fcda06c86675b6d659.tar.zst
rss-bridge-ecaae735d97e240c809cd1fcda06c86675b6d659.zip
[core] Support for bridge maintainers' donation URLs (#2102)
Diffstat (limited to 'lib/BridgeAbstract.php')
-rw-r--r--lib/BridgeAbstract.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/BridgeAbstract.php b/lib/BridgeAbstract.php
index 6158e3b9..917f5fec 100644
--- a/lib/BridgeAbstract.php
+++ b/lib/BridgeAbstract.php
@@ -41,6 +41,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
*
* Use {@see BridgeAbstract::getDescription()} to read this parameter
@@ -342,6 +349,11 @@ abstract class BridgeAbstract implements BridgeInterface {
}
/** {@inheritdoc} */
+ public function getDonationURI(){
+ return static::DONATION_URI;
+ }
+
+ /** {@inheritdoc} */
public function getCacheTimeout(){
return static::CACHE_TIMEOUT;
}