src/Entity/MailTesterRequest.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\MailTesterRequestRepository;
  4. use DateTimeImmutable;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7. * @ORM\Entity(repositoryClass=MailTesterRequestRepository::class)
  8. */
  9. class MailTesterRequest
  10. {
  11. /**
  12. * @ORM\Id
  13. * @ORM\GeneratedValue
  14. * @ORM\Column(type="integer")
  15. */
  16. private $id;
  17. /**
  18. * @ORM\Column(type="string", length=255)
  19. */
  20. private $email;
  21. /**
  22. * @ORM\Column(type="string", length=255)
  23. */
  24. private $name;
  25. /**
  26. * @ORM\Column(type="boolean")
  27. */
  28. private $status;
  29. /**
  30. * @ORM\Column(type="json", nullable=true)
  31. */
  32. private $response = [];
  33. /**
  34. * @ORM\Column(type="datetime_immutable")
  35. */
  36. private $requestAt;
  37. /**
  38. * @ORM\Column(type="string", length=255)
  39. */
  40. private $senderMail;
  41. public function getId(): ?int
  42. {
  43. return $this->id;
  44. }
  45. public function getEmail(): ?string
  46. {
  47. return $this->email;
  48. }
  49. public function setEmail(string $email): self
  50. {
  51. $this->email = $email;
  52. return $this;
  53. }
  54. public function getName(): ?string
  55. {
  56. return $this->name;
  57. }
  58. public function setName(string $name): self
  59. {
  60. $this->name = $name;
  61. return $this;
  62. }
  63. public function isStatus(): ?bool
  64. {
  65. return $this->status;
  66. }
  67. public function setStatus(bool $status): self
  68. {
  69. $this->status = $status;
  70. return $this;
  71. }
  72. public function getResponse(): ?array
  73. {
  74. return $this->response;
  75. }
  76. public function setResponse(?array $response): self
  77. {
  78. $this->response = $response;
  79. return $this;
  80. }
  81. public function getRequestAt(): ?DateTimeImmutable
  82. {
  83. return $this->requestAt;
  84. }
  85. public function setRequestAt( DateTimeImmutable $requestAt): self
  86. {
  87. $this->requestAt = $requestAt;
  88. return $this;
  89. }
  90. public function getSenderMail(): ?string
  91. {
  92. return $this->senderMail;
  93. }
  94. public function setSenderMail(string $senderMail): self
  95. {
  96. $this->senderMail = $senderMail;
  97. return $this;
  98. }
  99. }