<?php
namespace App\Entity\Whatsapp;
use App\Entity\AbstractBase;
use App\Entity\Garages\Garage;
use App\Repository\Whatsapp\WhatsappCampaignMessageRepository;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Table(name="vulco_whatsapp_campaign_message")
* @ORM\Entity(repositoryClass=WhatsappCampaignMessageRepository::class)
*/
class WhatsappCampaignMessage extends AbstractBase
{
/**
* @ORM\ManyToOne(targetEntity="WhatsappCampaign")
* @ORM\JoinColumn(name="whatsapp_campaign_id", referencedColumnName="id", nullable=false)
*/
private WhatsappCampaign $whatsappCampaign;
/**
* @ORM\ManyToOne(targetEntity="WhatsappMessage", cascade={"persist"})
* @ORM\JoinColumn(name="whatsapp_message_id", referencedColumnName="id", nullable=false)
*/
private WhatsappMessage $whatsappMessage;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Garages\Garage")
* @ORM\JoinColumn(name="garage_id", referencedColumnName="id", nullable=false)
*/
private Garage $garage;
public function getWhatsappCampaign(): WhatsappCampaign
{
return $this->whatsappCampaign;
}
public function setWhatsappCampaign(WhatsappCampaign $whatsappCampaign): self
{
$this->whatsappCampaign = $whatsappCampaign;
return $this;
}
public function getWhatsappMessage(): WhatsappMessage
{
return $this->whatsappMessage;
}
public function setWhatsappMessage(WhatsappMessage $whatsappMessage): self
{
$this->whatsappMessage = $whatsappMessage;
return $this;
}
public function getGarage(): Garage
{
return $this->garage;
}
public function setGarage(Garage $garage): self
{
$this->garage = $garage;
return $this;
}
}