src/Entity/ProViewsStat.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ProViewsStatRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassProViewsStatRepository::class)]
  6. class ProViewsStat
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\ManyToOne(targetEntityUser::class, inversedBy'proViewsStats')]
  13.     #[ORM\JoinColumn(nullablefalse)]
  14.     private $pro;
  15.     #[ORM\Column(type'string'length255)]
  16.     private $date;
  17.     #[ORM\Column(type'integer')]
  18.     private $views;
  19.     #[ORM\Column(type'string'length255)]
  20.     private $ip;
  21.     public function getId(): ?int
  22.     {
  23.         return $this->id;
  24.     }
  25.     public function getPro(): ?User
  26.     {
  27.         return $this->pro;
  28.     }
  29.     public function setPro(?User $pro): self
  30.     {
  31.         $this->pro $pro;
  32.         return $this;
  33.     }
  34.     public function getDate(): ?string
  35.     {
  36.         return $this->date;
  37.     }
  38.     public function setDate(string $date): self
  39.     {
  40.         $this->date $date;
  41.         return $this;
  42.     }
  43.     public function getViews(): ?int
  44.     {
  45.         return $this->views;
  46.     }
  47.     public function setViews(int $views): self
  48.     {
  49.         $this->views $views;
  50.         return $this;
  51.     }
  52.     public function getIp(): ?string
  53.     {
  54.         return $this->ip;
  55.     }
  56.     public function setIp(string $ip): self
  57.     {
  58.         $this->ip $ip;
  59.         return $this;
  60.     }
  61. }