summaryrefslogtreecommitdiff
path: root/src/Message.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Message.php')
-rw-r--r--src/Message.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Message.php b/src/Message.php
index 92c6005..d5df6ab 100644
--- a/src/Message.php
+++ b/src/Message.php
@@ -16,7 +16,8 @@ abstract class Message {
* Message constructor.
* @param int $type
*/
- public function __construct(int $type) {
+ public function __construct(int $type)
+ {
$this->type = $type;
}
@@ -28,7 +29,8 @@ abstract class Message {
/**
* @return string
*/
- public function serialize(): string {
+ public function serialize(): string
+ {
$data = [$this->type];
$content = $this->getContent();