<?php
namespace App\Entity;
use App\Repository\PubClientRepository;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
/**
* @ORM\Entity(repositoryClass=PubClientRepository::class)
*/
class PubClient
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="datetime")
* @Gedmo\Timestampable(on="create")
*/
private $createdAt;
/**
* @ORM\Column(type="boolean", options={"default": "1"})
*/
private $hide;
/**
* @ORM\ManyToOne(targetEntity=Pub::class, inversedBy="pubClients")
*/
private $pub;
/**
* @ORM\ManyToOne(targetEntity=Client::class, inversedBy="pubClients")
*/
private $client;
public function getId(): ?int
{
return $this->id;
}
public function getCreatedAt(): ?\DateTime
{
return $this->createdAt;
}
public function setCreatedAt(\DateTime $createdAt): self
{
$this->createdAt = $createdAt;
return $this;
}
public function getHide(): ?bool
{
return $this->hide;
}
public function setHide(bool $hide): self
{
$this->hide = $hide;
return $this;
}
public function getPub(): ?Pub
{
return $this->pub;
}
public function setPub(?Pub $pub): self
{
$this->pub = $pub;
return $this;
}
public function getClient(): ?Client
{
return $this->client;
}
public function setClient(?Client $client): self
{
$this->client = $client;
return $this;
}
}