PHP Class Prooph\ServiceBus\Example\Command\EchoText

Inheritance: extends Prooph\Common\Messaging\Command
Show file Open project: prooph/service-bus

Public Methods

Method Description
__construct ( $text )
getText ( )
payload ( ) : array Return message payload as array

Protected Methods

Method Description
setPayload ( array $payload ) : void This method is called when message is instantiated named constructor fromArray

Method Details

__construct() public method

public __construct ( $text )

getText() public method

public getText ( )

payload() public method

Return message payload as array
public payload ( ) : array
return array

setPayload() protected method

This method is called when message is instantiated named constructor fromArray
protected setPayload ( array $payload ) : void
$payload array
return void