Guest User

Untitled

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