Property | Type | Description | |
---|---|---|---|
$createdDate | integer | Created date (unix timestamp). | |
$keys | string[] | Metadata. Message "keys" i.e: Action: login | |
$lines | string[] | Message content, line by line. This is what it gets sent or received literally. | |
$variables | string[] | Metadata. Message variables (key/value). |
Method | Description | |
---|---|---|
__construct ( ) : void | Constructor. | |
__sleep ( ) : string[] | Serialize function. | |
getActionID ( ) : string | Returns key: 'ActionID'. | |
getCreatedDate ( ) : integer | Returns created date. | |
getKey ( string $key ) : string | Returns a key by name. | |
getKeys ( ) : string[] | Returns all keys for this message. | |
getVariable ( string $key ) : string | Returns a variable by name. | |
getVariables ( ) : string[] | Returns all variabels for this message. | |
serialize ( ) : string | Gives a string representation for this message, ready to be sent to ami. | |
setVariable ( string $key, string $value ) : void | Adds a variable to this message. |
Method | Description | |
---|---|---|
finishMessage ( $message ) : string | Returns the end of message token appended to the end of a given message. | |
setKey ( string $key, string $value ) : void | Adds a variable to this message. |
Method | Description | |
---|---|---|
serializeVariable ( string $key, string $value ) : string | Returns the string representation for an ami action variable. |
protected finishMessage ( $message ) : string | ||
return | string |
public getCreatedDate ( ) : integer | ||
return | integer |
public getKeys ( ) : string[] | ||
return | string[] |
public getVariable ( string $key ) : string | ||
$key | string | Variable name. |
return | string |
public getVariables ( ) : string[] | ||
return | string[] |
protected int $createdDate | ||
return | integer |
protected string[] $keys | ||
return | string[] |
protected string[] $lines | ||
return | string[] |