src/sb/XMPP/Message.php
public function reply($str)
    {
        $message = new \sb\XMPP\Message();
        $message->setTo($this->getFrom());
        $message->setFrom($this->getTo());
        $message->setBody($str);
        $this->client->sendMessage($message);
    }
public function reply($str)
    {
        $message = new \sb\XMPP\Message();
        $message->setTo($this->getFrom());
        $message->setFrom($this->getTo());
        $message->setBody($str);
        $this->client->sendMessage($message);
    }
public function reply ( $ str ) { $ message = new \ sb \ XMPP \ Message ( ) ; $ message -> setTo ( $ this -> getFrom ( ) ) ; $ message -> setFrom ( $ this -> getTo ( ) ) ; $ message -> setBody ( $ str ) ; $ this -> client -> sendMessage ( $ message ) ; }
Creates a reply message and sends it to the user that sent the
original message.  This can be used only on \sb\XMPP\Message instances
that came over the socket and were passed to the onMessage method.
@param string $str
Creates a reply message and sends it to the user that sent the original message . This can be used only on \ sb \ XMPP \ Message instances that came over the socket and were passed to the onMessage method .