diff options
Diffstat (limited to 'src/MasterClient.php')
-rw-r--r-- | src/MasterClient.php | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/MasterClient.php b/src/MasterClient.php new file mode 100644 index 0000000..6a7902b --- /dev/null +++ b/src/MasterClient.php @@ -0,0 +1,30 @@ +<?php + +namespace jobd; + +class MasterClient extends Client { + + /** + * @param array $targets + * @return ResponseMessage + * @throws \Exception + */ + public function poke(array $targets): ResponseMessage + { + return $this->recv( + $this->sendRequest(new RequestMessage('poke', ['targets' => $targets])) + ); + } + + /** + * @return ResponseMessage + * @throws \Exception + */ + public function status(): ResponseMessage + { + return $this->recv( + $this->sendRequest(new RequestMessage('status')) + ); + } + +}
\ No newline at end of file |