Advertisement
Guest User

Untitled

a guest
Apr 1st, 2020
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. <?php
  2.  
  3. namespace App\Dto;
  4.  
  5. class LoginDto {
  6.  
  7. private ?string $email;
  8.  
  9. private ?string $password;
  10.  
  11. public function __construct()
  12. {
  13. $this->email = null;
  14. $this->password = null;
  15. }
  16.  
  17. public function getEmail(): ?string {
  18. return $this->email;
  19. }
  20.  
  21. public function setEmail( string $email ): self {
  22. $this->email = $email;
  23.  
  24. return $this;
  25. }
  26.  
  27. public function getPassword(): ?string {
  28. return $this->password;
  29. }
  30.  
  31. public function setPassword( string $password ): self {
  32. $this->password = $password;
  33.  
  34. return $this;
  35. }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement