Browse Source

new methods added to ClientInterface

tags/0.7
Paul Rock 7 years ago
parent
commit
b41b96406e
  1. 31
      src/Interfaces/ClientInterface.php

31
src/Interfaces/ClientInterface.php

@ -66,8 +66,35 @@ interface ClientInterface
/** /**
* Send write query to RouterOS (with or without tag) * 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; 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;
} }
Loading…
Cancel
Save