Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -175,7 +175,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 @@ -208,7 +208,7 @@ protected function setSanitizedKey($key, $value)
*
* @param string $key Key name (i.e: Action).
*
* @return string
* @return mixed
*/
public function getKey($key)
{
Expand All @@ -225,7 +225,7 @@ public function getKey($key)
*
* @param string $key Key name (i.e: Action).
*
* @return string
* @return bool|null
*/
public function getBoolKey($key)
{
Expand All @@ -239,7 +239,7 @@ public function getBoolKey($key)
/**
* Returns all keys for this message.
*
* @return string[]
* @return array
*/
public function getKeys()
{
Expand All @@ -249,7 +249,7 @@ public function getKeys()
/**
* Returns all variabels for this message.
*
* @return string[]
* @return array
*/
public function getVariables()
{
Expand Down