<?php
namespace App\Entity;
use App\Repository\ProfileVisitRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=ProfileVisitRepository::class)
*/
class ProfileVisit
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=Profile::class, inversedBy="profileVisits")
* @ORM\JoinColumn(nullable=false)
*/
private $profile;
/**
* @ORM\ManyToOne(targetEntity=Society::class, inversedBy="profileVisits")
*/
private $society;
/**
* @ORM\Column(type="datetime_immutable")
*/
private $viewAt;
public function getId(): ?int
{
return $this->id;
}
public function getProfile(): ?Profile
{
return $this->profile;
}
public function setProfile(?Profile $profile): self
{
$this->profile = $profile;
return $this;
}
public function getSociety(): ?Society
{
return $this->society;
}
public function setSociety(?Society $society): self
{
$this->society = $society;
return $this;
}
public function getViewAt(): ?\DateTimeImmutable
{
return $this->viewAt;
}
public function setViewAt(\DateTimeImmutable $viewAt): self
{
$this->viewAt = $viewAt;
return $this;
}
}