public function createMessage(
        $queueName,
        $messageText,
        CreateMessageOptions $options = null
    ) {
        return $this->createMessageAsync($queueName, $messageText, $options)->wait();
    }
public function createMessage(
        $queueName,
        $messageText,
        CreateMessageOptions $options = null
    ) {
        return $this->createMessageAsync($queueName, $messageText, $options)->wait();
    }
public function createMessage ( $ queueName , $ messageText , CreateMessageOptions $ options = null ) { return $ this -> createMessageAsync ( $ queueName , $ messageText , $ options ) -> wait ( ) ; }
Adds a message to the queue and optionally sets a visibility timeout
for the message.

@param string               $queueName   The name of the queue.
@param string               $messageText The message contents.
@param CreateMessageOptions $options     The optional parameters.

@return CreateMessageResult
Adds a message to the queue and optionally sets a visibility timeout for the message .