src/Entity/ProfileVisit.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ProfileVisitRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=ProfileVisitRepository::class)
  7.  */
  8. class ProfileVisit
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\ManyToOne(targetEntity=Profile::class, inversedBy="profileVisits")
  18.      * @ORM\JoinColumn(nullable=false)
  19.      */
  20.     private $profile;
  21.     /**
  22.      * @ORM\ManyToOne(targetEntity=Society::class, inversedBy="profileVisits")
  23.      */
  24.     private $society;
  25.     /**
  26.      * @ORM\ManyToOne(targetEntity=User::class, inversedBy="profileVisits")
  27.      */
  28.     private $user;
  29.     /**
  30.      * @return mixed
  31.      */
  32.     public function getUser(): ?User
  33.     {
  34.         return $this->user;
  35.     }
  36.     /**
  37.      * @param mixed $user
  38.      */
  39.     public function setUser(?User $user): self
  40.     {
  41.         $this->user $user;
  42.         return $this;
  43.     }
  44.     /**
  45.      * @ORM\Column(type="datetime_immutable")
  46.      */
  47.     private $viewAt;
  48.     public function getId(): ?int
  49.     {
  50.         return $this->id;
  51.     }
  52.     public function getProfile(): ?Profile
  53.     {
  54.         return $this->profile;
  55.     }
  56.     public function setProfile(?Profile $profile): self
  57.     {
  58.         $this->profile $profile;
  59.         return $this;
  60.     }
  61.     public function getSociety(): ?Society
  62.     {
  63.         return $this->society;
  64.     }
  65.     public function setSociety(?Society $society): self
  66.     {
  67.         $this->society $society;
  68.         return $this;
  69.     }
  70.     public function getViewAt(): ?\DateTimeImmutable
  71.     {
  72.         return $this->viewAt;
  73.     }
  74.     public function setViewAt(\DateTimeImmutable $viewAt): self
  75.     {
  76.         $this->viewAt $viewAt;
  77.         return $this;
  78.     }
  79. }