src/OnlinePaymentBundle/Entity/Translation/PaymentMethodTranslation.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\OnlinePaymentBundle\Entity\Translation;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use PN\LocaleBundle\Model\EditableTranslation;
  5. use PN\LocaleBundle\Model\TranslationEntity;
  6. /**
  7. * @ORM\Entity
  8. * @ORM\Table(name="payment_method_translations")
  9. */
  10. class PaymentMethodTranslation extends TranslationEntity implements EditableTranslation
  11. {
  12. /**
  13. * @ORM\Column(name="title", type="string", length=255, nullable=true)
  14. */
  15. private ?string $title = null;
  16. /**
  17. * @ORM\Column(name="note", type="text", nullable=true)
  18. */
  19. private ?string $note = null;
  20. /**
  21. * @ORM\Id
  22. * @ORM\ManyToOne(targetEntity="App\OnlinePaymentBundle\Entity\PaymentMethod", inversedBy="translations")
  23. */
  24. protected $translatable;
  25. /**
  26. * @ORM\Id
  27. * @ORM\ManyToOne(targetEntity="PN\LocaleBundle\Entity\Language")
  28. */
  29. protected $language;
  30. public function getTitle(): ?string
  31. {
  32. return $this->title;
  33. }
  34. public function setTitle(?string $title): self
  35. {
  36. $this->title = $title;
  37. return $this;
  38. }
  39. public function getNote(): ?string
  40. {
  41. return $this->note;
  42. }
  43. public function setNote(?string $note): self
  44. {
  45. $this->note = $note;
  46. return $this;
  47. }
  48. }