diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/RequestMessage.php | 2 | ||||
-rw-r--r-- | 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]; } |