src/NewShippingBundle/Entity/Translation/ZoneTranslation.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\NewShippingBundle\Entity\Translation;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use App\NewShippingBundle\Entity\Zone;
  5. use PN\LocaleBundle\Entity\Language;
  6. use PN\LocaleBundle\Model\TranslationEntity;
  7. use PN\LocaleBundle\Model\EditableTranslation;
  8. /**
  9. * @ORM\Entity
  10. * @ORM\Table(name="zone_translations")
  11. */
  12. class ZoneTranslation extends TranslationEntity implements EditableTranslation
  13. {
  14. /**
  15. * @ORM\Column(name="title", type="string", length=255, nullable=true)
  16. */
  17. protected ?string $title = null;
  18. /**
  19. * @var
  20. * @ORM\Id
  21. * @ORM\ManyToOne(targetEntity="App\NewShippingBundle\Entity\Zone", 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 $language;
  30. public function setTitle($title): self
  31. {
  32. $this->title = $title;
  33. return $this;
  34. }
  35. public function getTitle(): string
  36. {
  37. return $this->title;
  38. }
  39. }