<?php
namespace App\Entity;
use App\Repository\ProViewsStatRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: ProViewsStatRepository::class)]
class ProViewsStat
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\ManyToOne(targetEntity: User::class, inversedBy: 'proViewsStats')]
#[ORM\JoinColumn(nullable: false)]
private $pro;
#[ORM\Column(type: 'string', length: 255)]
private $date;
#[ORM\Column(type: 'integer')]
private $views;
#[ORM\Column(type: 'string', length: 255)]
private $ip;
public function getId(): ?int
{
return $this->id;
}
public function getPro(): ?User
{
return $this->pro;
}
public function setPro(?User $pro): self
{
$this->pro = $pro;
return $this;
}
public function getDate(): ?string
{
return $this->date;
}
public function setDate(string $date): self
{
$this->date = $date;
return $this;
}
public function getViews(): ?int
{
return $this->views;
}
public function setViews(int $views): self
{
$this->views = $views;
return $this;
}
public function getIp(): ?string
{
return $this->ip;
}
public function setIp(string $ip): self
{
$this->ip = $ip;
return $this;
}
}