diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2021-03-03 01:41:53 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2021-03-03 01:41:53 +0300 |
commit | 0e564d2812758bb532588390eb878a080402993c (patch) | |
tree | 938d75279fd9de564850f536df1b7f02a75c206b /src/ResponseMessage.php | |
parent | 9f4adb06e6ff05be6217e44b30a910bae1ac4f3c (diff) |
code style
Diffstat (limited to 'src/ResponseMessage.php')
-rw-r--r-- | src/ResponseMessage.php | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/src/ResponseMessage.php b/src/ResponseMessage.php index 8e687e2..1f91dd4 100644 --- a/src/ResponseMessage.php +++ b/src/ResponseMessage.php @@ -11,11 +11,12 @@ class ResponseMessage extends Message { /** * Response constructor. * - * @param int $requestNo + * @param int $request_no * @param null $error * @param null $data */ - public function __construct($request_no, $error = null, $data = null) { + public function __construct(int $request_no, $error = null, $data = null) + { parent::__construct(Message::RESPONSE); $this->requestNo = $request_no; @@ -26,7 +27,8 @@ class ResponseMessage extends Message { /** * @return array */ - protected function getContent(): array { + protected function getContent(): array + { $response = [ 'no' => $this->requestNo ]; @@ -43,21 +45,24 @@ class ResponseMessage extends Message { /** * @return mixed */ - public function getError() { + public function getError() + { return $this->error; } /** * @return mixed */ - public function getData() { + public function getData() + { return $this->data; } /** * @return int */ - public function getRequestNo() { + public function getRequestNo(): int + { return $this->requestNo; } |