Browse Source

small fixes

tags/1.0
Paul Rock 6 years ago
parent
commit
7110ab5c05
  1. 2
      src/Query.php
  2. 4
      src/ShortsTrait.php

2
src/Query.php

@ -69,7 +69,7 @@ class Query implements QueryInterface
$this->setEndpoint($query); $this->setEndpoint($query);
$this->setAttributes($endpoint); $this->setAttributes($endpoint);
} else { } else {
throw new QueryException('Specified endpoint is not correct');
throw new QueryException('Specified endpoint is incorrect');
} }
} }

4
src/ShortsTrait.php

@ -116,11 +116,11 @@ trait ShortsTrait
* @param array|null $where List of where filters * @param array|null $where List of where filters
* @param string|null $operations Some operations which need make on response * @param string|null $operations Some operations which need make on response
* @param string|null $tag Mark query with tag * @param string|null $tag Mark query with tag
* @return \RouterOS\Client
* @return \RouterOS\ResponseIterator
* @throws \RouterOS\Exceptions\QueryException * @throws \RouterOS\Exceptions\QueryException
* @since 1.0.0 * @since 1.0.0
*/ */
public function qri(string $endpoint, array $where = null, string $operations = null, string $tag = null): array
public function qri(string $endpoint, array $where = null, string $operations = null, string $tag = null): ResponseIterator
{ {
return $this->query($endpoint, $where, $operations, $tag)->readAsIterator(); return $this->query($endpoint, $where, $operations, $tag)->readAsIterator();
} }

Loading…
Cancel
Save