<?php


namespace AutoAdmin\Bundle\Content\Entity\Traits;

use AutoAdmin\Bundle\Content\Model\TranslatableInterface;

trait TranslationTrait
{
    use IdTrait;
    use LocalizedTrait;

    /**
     * @ ORM\Id
     *
     * Autogenerated annotation:
     * ORM\ManyToOne(targetEntity="", inversedBy="translations")
     */
    protected TranslatableInterface $translatable;

    public function getTranslatable(): ?TranslatableInterface
    {
        return $this->translatable;
    }

    public function setTranslatable(?TranslatableInterface $translatable = null): void
    {
        $this->translatable = $translatable;
    }
}
