|
@@ -13,17 +13,14 @@ class HuaweiOltService
|
|
*/
|
|
*/
|
|
private $huawei;
|
|
private $huawei;
|
|
private $sendData;
|
|
private $sendData;
|
|
- private $stats;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
* HuaweiOltService constructor.
|
|
* HuaweiOltService constructor.
|
|
* @param $sendData
|
|
* @param $sendData
|
|
- * @param $stats
|
|
|
|
*/
|
|
*/
|
|
public function __construct(&$sendData)
|
|
public function __construct(&$sendData)
|
|
{
|
|
{
|
|
$this->sendData = &$sendData;
|
|
$this->sendData = &$sendData;
|
|
- $this->stats = &$stats;
|
|
|
|
}
|
|
}
|
|
|
|
|
|
public function configure(Huawei $huawei){
|
|
public function configure(Huawei $huawei){
|
|
@@ -39,7 +36,7 @@ class HuaweiOltService
|
|
$v = $data[$this->huawei->getIndex()] * 0.01;
|
|
$v = $data[$this->huawei->getIndex()] * 0.01;
|
|
$this->sendData[$m] = "{$v}|g";
|
|
$this->sendData[$m] = "{$v}|g";
|
|
|
|
|
|
- $this->stats[$metricName] = $v;
|
|
|
|
|
|
+ $this->huawei->stats[$metricName] = $v;
|
|
}
|
|
}
|
|
|
|
|
|
return $this;
|
|
return $this;
|
|
@@ -53,7 +50,7 @@ class HuaweiOltService
|
|
$v = $data[$this->huawei->getIndex()];
|
|
$v = $data[$this->huawei->getIndex()];
|
|
$this->sendData[$m] = "{$v}|g";
|
|
$this->sendData[$m] = "{$v}|g";
|
|
|
|
|
|
- $this->stats[$metricName] = $v;
|
|
|
|
|
|
+ $this->huawei->stats[$metricName] = $v;
|
|
}
|
|
}
|
|
|
|
|
|
return $this;
|
|
return $this;
|