<?php
namespace App\Entity;
use ApiPlatform\Metadata\ApiResource;
use App\Repository\LangueTranslationRepository;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Serializer\Annotation\Groups;
#[ORM\Entity(repositoryClass: LangueTranslationRepository::class)]
#[ApiResource(
normalizationContext: ['groups' => ['profile']],
denormalizationContext: ['groups' => ['profile']],
)]
class LangueTranslation
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255, nullable: true)]
#[Groups("profile")]
private ?string $content = null;
#[ORM\Column(length: 255, nullable: true)]
#[Groups("profile")]
private ?string $locale = null;
#[ORM\ManyToOne(inversedBy: 'translations')]
private ?Langue $langue = null;
public function getId(): ?int
{
return $this->id;
}
public function getContent(): ?string
{
return $this->content;
}
public function setContent(?string $content): self
{
$this->content = $content;
return $this;
}
public function getLocale(): ?string
{
return $this->locale;
}
public function setLocale(?string $locale): self
{
$this->locale = $locale;
return $this;
}
public function getLangue(): ?Langue
{
return $this->langue;
}
public function setLangue(?Langue $langue): self
{
$this->langue = $langue;
return $this;
}
}