Guest User

Untitled

a guest
Dec 15th, 2017
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. namespace FabiangXmppProtocol;
  2.  
  3. use FabiangXmppUtilXML;
  4.  
  5. class RegisterUserER implements ProtocolImplementationInterface
  6. {
  7. protected $username;
  8. protected $password;
  9. protected $email;
  10.  
  11. public function __construct($username, $password, $email)
  12. {
  13. $this->username = $username;
  14. $this->password = $password;
  15. $this->email = $email;
  16. }
  17.  
  18. public function toString()
  19. {
  20. $query = "%s%s%s";
  21. return XML::quoteMessage($query, XML::generateId(), (string) $this->username, (string) $this->password, (string) $this->email);
  22. }
Add Comment
Please, Sign In to add comment