From c6d9137453c7d94e08da67032f23814830ea3af9 Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Fri, 26 Feb 2021 18:14:05 +0300 Subject: RequestMessage/ResponseMessage: make getContent() protected --- src/RequestMessage.php | 2 +- src/ResponseMessage.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/RequestMessage.php b/src/RequestMessage.php index 46dfba3..85b9786 100644 --- a/src/RequestMessage.php +++ b/src/RequestMessage.php @@ -30,7 +30,7 @@ class RequestMessage extends Message { /** * @return string[] */ - public function getContent(): array { + protected function getContent(): array { $request = ['type' => $this->requestType]; if (!is_null($this->requestData)) $request['data'] = $this->requestData; diff --git a/src/ResponseMessage.php b/src/ResponseMessage.php index fa54c29..9352823 100644 --- a/src/ResponseMessage.php +++ b/src/ResponseMessage.php @@ -22,7 +22,7 @@ class ResponseMessage extends Message { /** * @return array */ - public function getContent(): array { + protected function getContent(): array { return [$this->error, $this->data]; } -- cgit v1.2.3