Message
in package
Rappresents a message to be converted to binary.
Tags
Table of Contents
Properties
- $message : string
Methods
- __construct() : mixed
- Message constructor.
- __toString() : string
- getLength() : int
- Returns the length of the message.
- getMessage() : string
- Returns the message.
- toBinary() : BinaryMessage
- Returns a binary rappresentation of the message.
Properties
$message
private
string
$message
Methods
__construct()
Message constructor.
public
__construct(string $message) : mixed
Parameters
- $message : string
-
The message.
__toString()
public
__toString() : string
Return values
stringgetLength()
Returns the length of the message.
public
getLength() : int
Return values
int —The length.
getMessage()
Returns the message.
public
getMessage() : string
Return values
string —The message.
toBinary()
Returns a binary rappresentation of the message.
public
toBinary() : BinaryMessage
Return values
BinaryMessage —The message to its binary rappresentation.