Browse Source

additional aliases added

tags/1.0
Paul Rock 6 years ago
parent
commit
1ba6684c78
  1. 25
      src/ShortsTrait.php

25
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();
}
}
Loading…
Cancel
Save