diff --git a/src/ShortsTrait.php b/src/ShortsTrait.php index ac1ddc0..3b9fa6c 100644 --- a/src/ShortsTrait.php +++ b/src/ShortsTrait.php @@ -39,6 +39,17 @@ trait ShortsTrait } /** + * Alias for ->readAsIterator() method + * + * @return mixed + * @since 0.7 + */ + public function ri() + { + return $this->readAsIterator(); + } + + /** * Alias for ->write()->read() combination of methods * * @param string|array|\RouterOS\Query $query @@ -52,4 +63,18 @@ trait ShortsTrait { return $this->write($query)->read($parse); } + + /** + * Alias for ->write()->read() combination of methods + * + * @param string|array|\RouterOS\Query $query + * @return array + * @throws \RouterOS\Exceptions\ClientException + * @throws \RouterOS\Exceptions\QueryException + * @since 0.6 + */ + public function wri($query): array + { + return $this->write($query)->readAsIterator(); + } }