src/VendorBundle/Entity/Translation/VendorTranslation.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\VendorBundle\Entity\Translation;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use PN\LocaleBundle\Entity\Language;
  5. use PN\LocaleBundle\Model\EditableTranslation;
  6. use PN\LocaleBundle\Model\TranslationEntity;
  7. /**
  8. * @ORM\Entity
  9. * @ORM\Table(name="vendor_translations")
  10. */
  11. class VendorTranslation extends TranslationEntity implements EditableTranslation
  12. {
  13. /**
  14. * @var string
  15. *
  16. * @ORM\Column(name="title", type="string", length=100)
  17. */
  18. private $title;
  19. /**
  20. * @ORM\Id
  21. * @ORM\ManyToOne(targetEntity="App\VendorBundle\Entity\Vendor", inversedBy="translations")
  22. */
  23. protected $translatable;
  24. /**
  25. * @var Language
  26. * @ORM\Id
  27. * @ORM\ManyToOne(targetEntity="PN\LocaleBundle\Entity\Language")
  28. */
  29. protected $language;
  30. public function setTitle(?string $title): static
  31. {
  32. $this->title = $title;
  33. return $this;
  34. }
  35. public function getTitle(): ?string
  36. {
  37. return $this->title;
  38. }
  39. }