src/Entity/Application/StoreTranslation.php line 16

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Application;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use App\Entity\Behaviors\TranslationTrait;
  5. use Knp\DoctrineBehaviors\Contract\Entity\TranslationInterface;
  6. use JMS\Serializer\Annotation as Serializer;
  7. /**
  8. * @ORM\Table(name="app_store_translation")
  9. * @ORM\Entity(repositoryClass="App\Repository\TranslationRepository")
  10. * @ORM\HasLifecycleCallbacks()
  11. */
  12. class StoreTranslation implements TranslationInterface
  13. {
  14. use TranslationTrait;
  15. /**
  16. * @Serializer\Groups({"api"})
  17. * @Serializer\SerializedName("description")
  18. * @ORM\Column(type="text", nullable=true)
  19. */
  20. private $description;
  21. /**
  22. * @ORM\Column(type="text", nullable=true)
  23. */
  24. private $descriptionWebsite;
  25. /**
  26. * @Serializer\Groups({"api"})
  27. * @Serializer\SerializedName("actionDescription")
  28. * @ORM\Column(type="text", nullable=true)
  29. */
  30. private $actionDescription;
  31. /**
  32. * @ORM\Column(type="string", length=2)
  33. */
  34. protected $locale;
  35. public function getDescription(): ?string
  36. {
  37. return trim($this->description);
  38. }
  39. public function setDescription( ?string $description ): self
  40. {
  41. $this->description = $description;
  42. return $this;
  43. }
  44. /**
  45. * Get ActionDescription
  46. *
  47. * @return mixed
  48. */
  49. public function getActionDescription()
  50. {
  51. return $this->actionDescription;
  52. }
  53. /**
  54. * Set ActionDescription
  55. *
  56. * @param mixed $actionDescription
  57. */
  58. public function setActionDescription( $actionDescription )
  59. {
  60. $this->actionDescription = $actionDescription;
  61. }
  62. /**
  63. * @return mixed
  64. */
  65. public function getDescriptionWebsite()
  66. {
  67. return $this->descriptionWebsite;
  68. }
  69. /**
  70. * @param mixed $descriptionWebsite
  71. */
  72. public function setDescriptionWebsite($descriptionWebsite): void
  73. {
  74. $this->descriptionWebsite = $descriptionWebsite;
  75. }
  76. }