| 1 | <?php |
||
| 10 | class Wrapper |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Alias for \RouterOS::client() method |
||
| 14 | * |
||
| 15 | * @param array $params |
||
| 16 | * |
||
| 17 | * @return \RouterOS\Client |
||
| 18 | * @throws \RouterOS\Exceptions\ClientException |
||
| 19 | * @throws \RouterOS\Exceptions\ConfigException |
||
| 20 | * @throws \RouterOS\Exceptions\QueryException |
||
| 21 | * @deprecated |
||
| 22 | * @codeCoverageIgnore |
||
| 23 | */ |
||
| 24 | public function getClient(array $params = []): ClientInterface |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Get configs of library |
||
| 31 | * |
||
| 32 | * @param array $params |
||
| 33 | * |
||
| 34 | * @return \RouterOS\Interfaces\ConfigInterface |
||
| 35 | * @throws \RouterOS\Exceptions\ConfigException |
||
| 36 | */ |
||
| 37 | public function config(array $params = []): ConfigInterface |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Instantiate client object |
||
| 48 | * |
||
| 49 | * @param array $params |
||
| 50 | * @param bool $autoConnect |
||
| 51 | * |
||
| 52 | * @return \RouterOS\Interfaces\ClientInterface |
||
| 53 | * @throws \RouterOS\Exceptions\ClientException |
||
| 54 | * @throws \RouterOS\Exceptions\ConfigException |
||
| 55 | * @throws \RouterOS\Exceptions\QueryException |
||
| 56 | */ |
||
| 57 | public function client(array $params = [], bool $autoConnect = true): ClientInterface |
||
| 63 | } |
||
| 64 |