summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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];
}