src/Entity/SmsSetup.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * @ORM\Entity
  6. * @ORM\Table(name="sms_setup")
  7. */
  8. class SmsSetup {
  9. /**
  10. * @ORM\Id
  11. * @ORM\GeneratedValue(strategy="AUTO")
  12. * @ORM\Column(type="integer")
  13. */
  14. private int $id;
  15. /**
  16. * @ORM\Column(type="string")
  17. */
  18. private string $sampleMessage;
  19. /**
  20. * @ORM\Column(type="string")
  21. */
  22. private string $sendTo;
  23. /**
  24. * @ORM\Column(type="string")
  25. */
  26. private string $action;
  27. /**
  28. * @var User $createdBy
  29. * @ORM\ManyToOne(targetEntity="App\Entity\User")
  30. * @ORM\JoinColumns({
  31. * @ORM\JoinColumn(name="created_by", referencedColumnName="id")
  32. * })
  33. */
  34. private User $createdBy;
  35. public function getId(): int
  36. {
  37. return $this->id;
  38. }
  39. public function setId(int $id): void
  40. {
  41. $this->id = $id;
  42. }
  43. public function getSampleMessage(): string
  44. {
  45. return $this->sampleMessage;
  46. }
  47. public function setSampleMessage(string $sampleMessage): void
  48. {
  49. $this->sampleMessage = $sampleMessage;
  50. }
  51. public function getAction(): string
  52. {
  53. return $this->action;
  54. }
  55. public function setAction(string $action): void
  56. {
  57. $this->action = $action;
  58. }
  59. public function getCreatedBy(): User
  60. {
  61. return $this->createdBy;
  62. }
  63. public function setCreatedBy(User $createdBy): void
  64. {
  65. $this->createdBy = $createdBy;
  66. }
  67. public function getSendTo(): string
  68. {
  69. return $this->sendTo;
  70. }
  71. public function setSendTo(string $sendTo): void
  72. {
  73. $this->sendTo = $sendTo;
  74. }
  75. }