[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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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;