|
|
|
@ -179,11 +179,11 @@ class Client implements Interfaces\ClientInterface |
|
|
|
/** |
|
|
|
* Read using Iterators to improve performance on large dataset |
|
|
|
* |
|
|
|
* @return Iterators\ResponseIterator |
|
|
|
* @return \RouterOS\ResponseIterator |
|
|
|
*/ |
|
|
|
public function readAsIterator() |
|
|
|
public function readAsIterator(): ResponseIterator |
|
|
|
{ |
|
|
|
return new Iterators\ResponseIterator($this->read(false)); |
|
|
|
return new ResponseIterator($this); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
@ -236,7 +236,7 @@ class Client implements Interfaces\ClientInterface |
|
|
|
* @param array $response Response data |
|
|
|
* @return array Array with parsed data |
|
|
|
*/ |
|
|
|
protected function parseResponse(array $response): array |
|
|
|
public function parseResponse(array $response): array |
|
|
|
{ |
|
|
|
$result = []; |
|
|
|
$i = -1; |
|
|
|
|