summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2021-02-26 18:14:05 +0300
committerEvgeny Zinoviev <me@ch1p.io>2021-02-26 18:14:05 +0300
commitc6d9137453c7d94e08da67032f23814830ea3af9 (patch)
tree9508b4ae960e1b12cb3da1d5591c121ae03b214e
parentae9fd961750d739a8d05c70cbff747fd295b2632 (diff)
RequestMessage/ResponseMessage: make getContent() protected
-rw-r--r--src/RequestMessage.php2
-rw-r--r--src/ResponseMessage.php2
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];
}