<?phpnamespace App\Entity\Application;use Doctrine\ORM\Mapping as ORM;use App\Entity\Behaviors\TranslationTrait;use Knp\DoctrineBehaviors\Contract\Entity\TranslationInterface;use JMS\Serializer\Annotation as Serializer;/** * @ORM\Table(name="app_offer_translation") * @ORM\Entity(repositoryClass="App\Repository\TranslationRepository") * @ORM\HasLifecycleCallbacks() */class OfferTranslation implements TranslationInterface{ use TranslationTrait; /** * @ORM\Column(type="string", length=2) */ protected $locale; /** * @Serializer\Groups({"api"}) * @Serializer\SerializedName("name") * @ORM\Column(type="string", length=150) */ private $name; /** * @Serializer\Groups({"api"}) * @Serializer\SerializedName("title") * @ORM\Column(type="string", length=255, nullable=true) */ private $title; /** * @Serializer\Groups({"api"}) * @Serializer\SerializedName("subtitle") * @ORM\Column(type="string", length=255, nullable=true) */ private $subTitle; /** * @ORM\Column(type="text", nullable=true) */ private $description; public function getName(): ?string { return trim($this->name); } public function setName(string $name): self { $this->name = $name; return $this; } public function getTitle(): ?string { return $this->title; } public function setTitle(?string $title): self { $this->title = $title; return $this; } public function getSubTitle(): ?string { return $this->subTitle; } public function setSubTitle(?string $subTitle): self { $this->subTitle = $subTitle; return $this; } /** * @return mixed */ public function getDescription() { return $this->description; } /** * @param mixed $description */ public function setDescription($description): void { $this->description = $description; }}