vendor/sulu/form-bundle/Entity/FormTranslationReceiver.php line 14

Open in your IDE?
  1. <?php
  2. /*
  3. * This file is part of Sulu.
  4. *
  5. * (c) Sulu GmbH
  6. *
  7. * This source file is subject to the MIT license that is bundled
  8. * with this source code in the file LICENSE.
  9. */
  10. namespace Sulu\Bundle\FormBundle\Entity;
  11. class FormTranslationReceiver
  12. {
  13. /**
  14. * @var int
  15. */
  16. private $id;
  17. /**
  18. * @var string
  19. */
  20. private $type;
  21. /**
  22. * @var string
  23. */
  24. private $email;
  25. /**
  26. * @var string
  27. */
  28. private $name;
  29. /**
  30. * @var FormTranslation
  31. */
  32. private $formTranslation;
  33. public function getId(): int
  34. {
  35. return $this->id;
  36. }
  37. public function setId(int $id): self
  38. {
  39. $this->id = $id;
  40. return $this;
  41. }
  42. public function getType(): string
  43. {
  44. return $this->type;
  45. }
  46. public function setType(string $type): self
  47. {
  48. $this->type = $type;
  49. return $this;
  50. }
  51. public function getEmail(): string
  52. {
  53. return $this->email;
  54. }
  55. public function setEmail(string $email): self
  56. {
  57. $this->email = $email;
  58. return $this;
  59. }
  60. public function getName(): string
  61. {
  62. return $this->name;
  63. }
  64. public function setName(string $name): self
  65. {
  66. $name = $name ?: '';
  67. $this->name = $name;
  68. return $this;
  69. }
  70. public function getFormTranslation(): FormTranslation
  71. {
  72. return $this->formTranslation;
  73. }
  74. public function setFormTranslation(FormTranslation $formTranslation): self
  75. {
  76. $this->formTranslation = $formTranslation;
  77. return $this;
  78. }
  79. }