Skip to content

Commit

Permalink
Merge pull request #71 from ker0x/hotfix/issue-69
Browse files Browse the repository at this point in the history
[fix #69] Fix phpcs error, update class MessageEcho
  • Loading branch information
ker0x authored Aug 29, 2017
2 parents 38a4366 + b914459 commit 7ddfbdd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Model/Callback/MessageEcho.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class MessageEcho extends Message
protected $isEcho;

/**
* @var int
* @var null|int
*/
protected $appId;

Expand All @@ -23,7 +23,7 @@ class MessageEcho extends Message
* MessageEcho constructor.
*
* @param bool $isEcho
* @param int $appId
* @param null|int $appId
* @param string $messageId
* @param int $sequence
* @param string|null $metadata
Expand All @@ -33,7 +33,7 @@ class MessageEcho extends Message
*/
public function __construct(
bool $isEcho,
int $appId,
$appId,
string $messageId,
int $sequence,
string $metadata = null,
Expand All @@ -57,9 +57,9 @@ public function isEcho(): bool
}

/**
* @return int
* @return null|int
*/
public function getAppId(): int
public function getAppId()
{
return $this->appId;
}
Expand All @@ -79,7 +79,7 @@ public function getMetadata()
*/
public static function create(array $payload)
{
$appId = $payload['app_id'] ?? null;
$appId = $payload['app_id'] ?? null;
$metadata = $payload['metadata'] ?? null;
$text = $payload['text'] ?? null;
$quickReply = $payload['quick_reply']['payload'] ?? null;
Expand Down

0 comments on commit 7ddfbdd

Please sign in to comment.