PHP Class Nats\Message

Afficher le fichier Open project: repejota/phpnats Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( string $subject, string $body, string $sid, Connection $conn ) Message constructor.
__toString ( ) : string String representation of a message.
getBody ( ) : string Get body.
getConn ( ) : Connection Get Conn.
getSid ( ) : string Get Ssid.
getSubject ( ) : string Get subject.
reply ( string $body ) : void Allows you reply the message with a specific body.
setBody ( string $body ) Set body.
setConn ( Connection $conn ) Set Conn.
setSid ( string $sid ) Set Ssid.
setSubject ( string $subject ) Set subject.

Method Details

__construct() public méthode

Message constructor.
public __construct ( string $subject, string $body, string $sid, Connection $conn )
$subject string Message subject.
$body string Message body.
$sid string Message Sid.
$conn Connection Message Connection.

__toString() public méthode

String representation of a message.
public __toString ( ) : string
Résultat string

getBody() public méthode

Get body.
public getBody ( ) : string
Résultat string

getConn() public méthode

Get Conn.
public getConn ( ) : Connection
Résultat Connection

getSid() public méthode

Get Ssid.
public getSid ( ) : string
Résultat string

getSubject() public méthode

Get subject.
public getSubject ( ) : string
Résultat string

reply() public méthode

Allows you reply the message with a specific body.
public reply ( string $body ) : void
$body string Body to be set.
Résultat void

setBody() public méthode

Set body.
public setBody ( string $body )
$body string Body.

setConn() public méthode

Set Conn.
public setConn ( Connection $conn )
$conn Connection Connection.

setSid() public méthode

Set Ssid.
public setSid ( string $sid )
$sid string Ssid.

setSubject() public méthode

Set subject.
public setSubject ( string $subject )
$subject string Subject.