EmailRecipient.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Service\Mailer;
  4. use App\Entity\Access\Access;
  5. use App\Entity\Organization\Organization;
  6. /**
  7. * Classe AbstractRecipient qui contient les informations des destinataires
  8. */
  9. class EmailRecipient
  10. {
  11. private string $sendStatus;
  12. private string $name = '';
  13. private string $emailAddress;
  14. private string $sendType;
  15. private ?Access $access = null;
  16. private ?Organization $organization = null;
  17. public function getSendType(): string
  18. {
  19. return $this->sendType;
  20. }
  21. public function setSendType(string $sendType): self
  22. {
  23. $this->sendType = $sendType;
  24. return $this;
  25. }
  26. public function getSendStatus(): string
  27. {
  28. return $this->sendStatus;
  29. }
  30. public function setSendStatus(string $sendStatus): self
  31. {
  32. $this->sendStatus = $sendStatus;
  33. return $this;
  34. }
  35. public function getName(): string
  36. {
  37. return $this->name;
  38. }
  39. public function setName(string $name): self
  40. {
  41. $this->name = $name;
  42. return $this;
  43. }
  44. public function getEmailAddress(): string
  45. {
  46. return $this->emailAddress;
  47. }
  48. public function setEmailAddress(string $emailAddress): self
  49. {
  50. $this->emailAddress = $emailAddress;
  51. return $this;
  52. }
  53. public function getAccess(): ?Access
  54. {
  55. return $this->access;
  56. }
  57. public function setAccess(?Access $access): self
  58. {
  59. $this->access = $access;
  60. return $this;
  61. }
  62. public function getOrganization(): ?Organization
  63. {
  64. return $this->organization;
  65. }
  66. public function setOrganization(?Organization $organization): self
  67. {
  68. $this->organization = $organization;
  69. return $this;
  70. }
  71. }