[lib/Bridge] Define default behavior for getName() and getURI()
Bridges no longer require implementation for getName() and getURI() as they are now implemented with default behavior in BridgeAbstract. This was previously implemented only for RSSExpander and is now part of BridgeAbstract (automatically inherited). Documentation is updated accordingly.
This commit is contained in:
parent
5432cabef5
commit
b59915f23b
2 changed files with 24 additions and 23 deletions
lib
|
@ -74,6 +74,20 @@ abstract class BridgeAbstract implements BridgeInterface{
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Define default bridge name
|
||||
*/
|
||||
public function getName(){
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Define default bridge URI
|
||||
*/
|
||||
public function getURI(){
|
||||
return $this->uri;
|
||||
}
|
||||
|
||||
/**
|
||||
* Define default duraction for cache
|
||||
*/
|
||||
|
@ -365,15 +379,6 @@ abstract class RssExpander extends HttpCachingBridgeAbstract{
|
|||
*/
|
||||
abstract protected function parseRSSItem($item);
|
||||
|
||||
|
||||
public function getName(){
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
public function getURI(){
|
||||
return $this->uri;
|
||||
}
|
||||
|
||||
public function getDescription() {
|
||||
return $this->description;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue