Skip to content

Commit

Permalink
Fix PHPDoc type violations on PAMI\Message\Message class
Browse files Browse the repository at this point in the history
  • Loading branch information
7-zete-7 committed Apr 5, 2023
1 parent fb284ae commit 12d393e
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/PAMI/Message/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ abstract class Message

/**
* Metadata. Message variables (key/value).
* @var string[]
* @var array
*/
protected $variables;

/**
* Metadata. Message "keys" i.e: Action: login
* @var string[]
* @var array
*/
protected $keys;

Expand Down Expand Up @@ -102,7 +102,7 @@ public function getCreatedDate()
* Adds a variable to this message.
*
* @param string $key Variable name.
* @param string $value Variable value.
* @param mixed $value Variable value.
*
* @return void
*/
Expand All @@ -116,7 +116,7 @@ public function setVariable($key, $value)
*
* @param string $key Variable name.
*
* @return string
* @return mixed
*/
public function getVariable($key)
{
Expand All @@ -131,7 +131,7 @@ public function getVariable($key)
*
* @param string $value Key value.
*
* @return typed and sanitized value
* @return mixed typed and sanitized value
*/
protected function sanitizeInput($value)
{
Expand Down Expand Up @@ -172,7 +172,7 @@ protected function sanitizeInput($value)
* Adds a variable to this message.
*
* @param string $key Key name (i.e: Action).
* @param string $value Key value.
* @param mixed $value Key value.
*
* @return void
*/
Expand Down Expand Up @@ -205,7 +205,7 @@ protected function setSanitizedKey($key, $value)
*
* @param string $key Key name (i.e: Action).
*
* @return string
* @return mixed
*/
public function getKey($key)
{
Expand All @@ -222,7 +222,7 @@ public function getKey($key)
*
* @param string $key Key name (i.e: Action).
*
* @return string
* @return bool|null
*/
public function getBoolKey($key)
{
Expand All @@ -236,7 +236,7 @@ public function getBoolKey($key)
/**
* Returns all keys for this message.
*
* @return string[]
* @return array
*/
public function getKeys()
{
Expand All @@ -246,7 +246,7 @@ public function getKeys()
/**
* Returns all variabels for this message.
*
* @return string[]
* @return array
*/
public function getVariables()
{
Expand Down

0 comments on commit 12d393e

Please sign in to comment.