From c2639092c69695f72753caf7eec90716579a58c6 Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Tue, 2 Mar 2021 20:31:10 +0300 Subject: create separate classes WorkerClient and MasterClient --- src/Client.php | 42 ------------------------------------------ 1 file changed, 42 deletions(-) (limited to 'src/Client.php') diff --git a/src/Client.php b/src/Client.php index 7146f5a..33228d1 100644 --- a/src/Client.php +++ b/src/Client.php @@ -54,48 +54,6 @@ class Client { return $this->recv(); } - /** - * @param array $targets - * @return ResponseMessage - * @throws \Exception - */ - public function poke(array $targets) { - return $this->recv( - $this->sendRequest(new RequestMessage('poke', ['targets' => $targets])) - ); - } - - /** - * @return ResponseMessage - * @throws \Exception - */ - public function status() { - return $this->recv( - $this->sendRequest(new RequestMessage('status')) - ); - } - - /** - * @param array $targets - * @return ResponseMessage - * @throws \Exception - */ - public function poll(array $targets) { - return $this->recv( - $this->sendRequest(new RequestMessage('poll', ['targets' => $targets])) - ); - } - - /** - * @param int $id - * @return ResponseMessage - */ - public function runManual(int $id) { - return $this->recv( - $this->sendRequest(new RequestMessage('run-manual', ['id' => $id])) - ); - } - /** * @param RequestMessage $request * @return int -- cgit v1.2.3