summaryrefslogtreecommitdiff
path: root/src/RequestMessage.php
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2021-03-03 01:41:53 +0300
committerEvgeny Zinoviev <me@ch1p.io>2021-03-03 01:41:53 +0300
commit0e564d2812758bb532588390eb878a080402993c (patch)
tree938d75279fd9de564850f536df1b7f02a75c206b /src/RequestMessage.php
parent9f4adb06e6ff05be6217e44b30a910bae1ac4f3c (diff)
code style
Diffstat (limited to 'src/RequestMessage.php')
-rw-r--r--src/RequestMessage.php14
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,