mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-28 12:20:12 +02:00
[core] Rename item getter/setter
getDatas -> getItems setDatas -> setItems Note: Bridge->setDatas actually sets data, where Bridge->getItems only returns items (this is why Bridge->setDatas was not changed)
This commit is contained in:
@@ -139,7 +139,7 @@ abstract class BridgeAbstract implements BridgeInterface {
|
||||
* Return items stored in the bridge
|
||||
* @return mixed
|
||||
*/
|
||||
public function getDatas(){
|
||||
public function getItems(){
|
||||
return $this->items;
|
||||
}
|
||||
|
||||
@@ -267,7 +267,7 @@ abstract class BridgeAbstract implements BridgeInterface {
|
||||
|
||||
$this->collectData();
|
||||
if(!is_null($this->cache)){
|
||||
$this->cache->saveData($this->getDatas());
|
||||
$this->cache->saveData($this->getItems());
|
||||
}
|
||||
return;
|
||||
}
|
||||
@@ -360,7 +360,7 @@ abstract class BridgeAbstract implements BridgeInterface {
|
||||
$this->collectData();
|
||||
|
||||
if(!is_null($this->cache)){
|
||||
$this->cache->saveData($this->getDatas());
|
||||
$this->cache->saveData($this->getItems());
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user