<?php
namespace App\Entity;
use App\Repository\EstablishmentPromoRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=EstablishmentPromoRepository::class)
*/
class EstablishmentPromo
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=Establishments::class, inversedBy="establishmentPromos")
* @ORM\JoinColumn(nullable=false)
*/
private $establishment;
/**
* @ORM\ManyToOne(targetEntity=Promotions::class, inversedBy="establishmentPromos")
* @ORM\JoinColumn(nullable=false)
*/
private $promo;
/**
* @ORM\Column(type="boolean")
*/
private $deleted = false;
public function getId(): ?int
{
return $this->id;
}
public function getEstablishment(): ?Establishments
{
return $this->establishment;
}
public function setEstablishment(?Establishments $establishment): self
{
$this->establishment = $establishment;
return $this;
}
public function getPromo(): ?Promotions
{
return $this->promo;
}
public function setPromo(?Promotions $promo): self
{
$this->promo = $promo;
return $this;
}
public function isDeleted(): ?bool
{
return $this->deleted;
}
public function setDeleted(bool $deleted): self
{
$this->deleted = $deleted;
return $this;
}
}