From b41b96406e8ddd01e78a05a28649bd44e6ebcdfd Mon Sep 17 00:00:00 2001 From: Paul Rock Date: Thu, 14 Feb 2019 04:29:49 +0300 Subject: [PATCH] new methods added to ClientInterface --- src/Interfaces/ClientInterface.php | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/src/Interfaces/ClientInterface.php b/src/Interfaces/ClientInterface.php index 18469bc..888e32c 100644 --- a/src/Interfaces/ClientInterface.php +++ b/src/Interfaces/ClientInterface.php @@ -66,8 +66,35 @@ interface ClientInterface /** * Send write query to RouterOS (with or without tag) * - * @param Query $query - * @return Client + * @param \RouterOS\Query $query + * @return \RouterOS\Client */ public function write(Query $query): Client; + + /** + * Alias for ->read() method + * + * @param bool $parse + * @return array + * @since 0.7 + */ + public function r(bool $parse = true): array; + + /** + * Alias for ->write() method + * + * @param \RouterOS\Query $query + * @return \RouterOS\Client + */ + public function w(Query $query): Client; + + /** + * Alias for ->write()->read() combination of methods + * + * @param \RouterOS\Query $query + * @param bool $parse + * @return array + * @since 0.6 + */ + public function wr(Query $query, bool $parse = true): array; }