<?phpnamespace App\Entity;use App\Repository\ExperienceRepository;use Doctrine\ORM\Mapping as ORM;use JMS\Serializer\Annotation as Serializer;/** * @ORM\Entity(repositoryClass=ExperienceRepository::class) * @Serializer\ExclusionPolicy("ALL") */class Experience{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") * @Serializer\Expose * @Serializer\Groups({"user_profile"}) */ private $id; /** * @ORM\Column(type="string", length=255) * @Serializer\Expose * @Serializer\Groups({"user_profile"}) */ private $title; /** * @ORM\Column(type="datetime") * @Serializer\Expose * @Serializer\Groups({"user_profile"}) */ private $startAt; /** * @ORM\Column(type="datetime", nullable=true) * @Serializer\Expose * @Serializer\Groups({"user_profile"}) */ private $endAt; /** * @ORM\ManyToOne(targetEntity=User::class, inversedBy="userExperiences") * @ORM\JoinColumn(nullable=false) */ private $user; /** * @ORM\Column(type="boolean", nullable=true) * @Serializer\Expose * @Serializer\Groups({"user_profile"}) */ private $isCofinaExperience = true; public function getId(): ?int { return $this->id; } public function getTitle(): ?string { return $this->title; } public function setTitle(string $title): self { $this->title = $title; return $this; } public function getStartAt(): ?\DateTimeInterface { return $this->startAt; } public function setStartAt(\DateTimeInterface $startAt): self { $this->startAt = $startAt; return $this; } public function getEndAt(): ?\DateTimeInterface { return $this->endAt; } public function setEndAt(?\DateTimeInterface $endAt): self { $this->endAt = $endAt; return $this; } public function getUser(): ?User { return $this->user; } public function setUser(?User $user): self { $this->user = $user; return $this; } public function isIsCofinaExperience(): ?bool { return $this->isCofinaExperience; } public function setIsCofinaExperience(?bool $isCofinaExperience): self { $this->isCofinaExperience = $isCofinaExperience; return $this; }}