<?php
namespace App\Entity;
use ApiPlatform\Metadata\ApiResource;
use App\Repository\InterestTranslationRepository;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Serializer\Annotation\Groups;
#[ORM\Entity(repositoryClass: InterestTranslationRepository::class)]
#[ApiResource(
normalizationContext: ['groups' => ['profile']],
denormalizationContext: ['groups' => ['profile']],
)]
class InterestTranslation
{
#[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 ?Interest $interest = 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 getInterest(): ?Interest
{
return $this->interest;
}
public function setInterest(?Interest $interest): self
{
$this->interest = $interest;
return $this;
}
}