src/Entity/PubClient.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PubClientRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Gedmo\Mapping\Annotation as Gedmo;
  6. /**
  7.  * @ORM\Entity(repositoryClass=PubClientRepository::class)
  8.  */
  9. class PubClient
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="datetime")
  19.      * @Gedmo\Timestampable(on="create")
  20.      */
  21.     private $createdAt;
  22.     /**
  23.      * @ORM\Column(type="boolean", options={"default": "1"})
  24.      */
  25.     private $hide;
  26.     /**
  27.      * @ORM\ManyToOne(targetEntity=Pub::class, inversedBy="pubClients")
  28.      */
  29.     private $pub;
  30.     /**
  31.      * @ORM\ManyToOne(targetEntity=Client::class, inversedBy="pubClients")
  32.      */
  33.     private $client;
  34.     public function getId(): ?int
  35.     {
  36.         return $this->id;
  37.     }
  38.     public function getCreatedAt(): ?\DateTime
  39.     {
  40.         return $this->createdAt;
  41.     }
  42.     public function setCreatedAt(\DateTime $createdAt): self
  43.     {
  44.         $this->createdAt $createdAt;
  45.         return $this;
  46.     }
  47.     public function getHide(): ?bool
  48.     {
  49.         return $this->hide;
  50.     }
  51.     public function setHide(bool $hide): self
  52.     {
  53.         $this->hide $hide;
  54.         return $this;
  55.     }
  56.     public function getPub(): ?Pub
  57.     {
  58.         return $this->pub;
  59.     }
  60.     public function setPub(?Pub $pub): self
  61.     {
  62.         $this->pub $pub;
  63.         return $this;
  64.     }
  65.     public function getClient(): ?Client
  66.     {
  67.         return $this->client;
  68.     }
  69.     public function setClient(?Client $client): self
  70.     {
  71.         $this->client $client;
  72.         return $this;
  73.     }
  74. }