diff options
Diffstat (limited to 'src/RequestMessage.php')
-rw-r--r-- | src/RequestMessage.php | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/RequestMessage.php b/src/RequestMessage.php index dc28e4d..7799937 100644 --- a/src/RequestMessage.php +++ b/src/RequestMessage.php @@ -12,9 +12,10 @@ class RequestMessage extends Message { /** * Request constructor. * @param string $request_type - * @param null $request_data + * @param null|array $request_data */ - public function __construct(string $request_type, $request_data = null) { + public function __construct(string $request_type, $request_data = null) + { parent::__construct(Message::REQUEST); $this->requestData = $request_data; @@ -24,21 +25,24 @@ class RequestMessage extends Message { /** * @param string $password */ - public function setPassword(string $password) { + public function setPassword(string $password) + { $this->password = $password; } /** * @param int $no */ - public function setRequestNo(int $no) { + public function setRequestNo(int $no) + { $this->requestNo = $no; } /** * @return string[] */ - protected function getContent(): array { + protected function getContent(): array + { $request = [ 'type' => $this->requestType, 'no' => $this->requestNo, |