mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-31 16:15:20 +02:00
core: Use methods to access bridge information
Bridge information were exposed and accessed via public constants which doesn't work if you want to generate bridges dynamically as discussed in #402
This commit is contained in:
parent
c44fb25845
commit
d93d491d8e
3 changed files with 47 additions and 17 deletions
|
@ -13,6 +13,13 @@ interface BridgeInterface {
|
|||
*/
|
||||
public function getCachable();
|
||||
|
||||
/**
|
||||
* Returns the description
|
||||
*
|
||||
* @return string Description
|
||||
*/
|
||||
public function getDescription();
|
||||
|
||||
/**
|
||||
* Return an array of extra information
|
||||
*
|
||||
|
@ -27,6 +34,13 @@ interface BridgeInterface {
|
|||
*/
|
||||
public function getItems();
|
||||
|
||||
/**
|
||||
* Returns the bridge maintainer
|
||||
*
|
||||
* @return string Bridge maintainer
|
||||
*/
|
||||
public function getMaintainer();
|
||||
|
||||
/**
|
||||
* Returns the bridge name
|
||||
*
|
||||
|
@ -34,6 +48,13 @@ interface BridgeInterface {
|
|||
*/
|
||||
public function getName();
|
||||
|
||||
/**
|
||||
* Returns the bridge parameters
|
||||
*
|
||||
* @return array Bridge parameters
|
||||
*/
|
||||
public function getParameters();
|
||||
|
||||
/**
|
||||
* Returns the bridge URI
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue