src/Entity/Whatsapp/WhatsappCampaignMessage.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Whatsapp;
  3. use App\Entity\AbstractBase;
  4. use App\Entity\Garages\Garage;
  5. use App\Repository\Whatsapp\WhatsappCampaignMessageRepository;
  6. use Doctrine\Common\Collections\Collection;
  7. use Doctrine\ORM\Mapping as ORM;
  8. /**
  9.  * @ORM\Table(name="vulco_whatsapp_campaign_message")
  10.  * @ORM\Entity(repositoryClass=WhatsappCampaignMessageRepository::class)
  11.  */
  12. class WhatsappCampaignMessage extends AbstractBase
  13. {
  14.     /**
  15.      * @ORM\ManyToOne(targetEntity="WhatsappCampaign")
  16.      * @ORM\JoinColumn(name="whatsapp_campaign_id", referencedColumnName="id", nullable=false)
  17.      */
  18.     private WhatsappCampaign $whatsappCampaign;
  19.     /**
  20.      * @ORM\ManyToOne(targetEntity="WhatsappMessage", cascade={"persist"})
  21.      * @ORM\JoinColumn(name="whatsapp_message_id", referencedColumnName="id", nullable=false)
  22.      */
  23.     private WhatsappMessage $whatsappMessage;
  24.     /**
  25.      * @ORM\ManyToOne(targetEntity="App\Entity\Garages\Garage")
  26.      * @ORM\JoinColumn(name="garage_id", referencedColumnName="id", nullable=false)
  27.      */
  28.     private Garage $garage;
  29.     public function getWhatsappCampaign(): WhatsappCampaign
  30.     {
  31.         return $this->whatsappCampaign;
  32.     }
  33.     public function setWhatsappCampaign(WhatsappCampaign $whatsappCampaign): self
  34.     {
  35.         $this->whatsappCampaign $whatsappCampaign;
  36.         return $this;
  37.     }
  38.     public function getWhatsappMessage(): WhatsappMessage
  39.     {
  40.         return $this->whatsappMessage;
  41.     }
  42.     public function setWhatsappMessage(WhatsappMessage $whatsappMessage): self
  43.     {
  44.         $this->whatsappMessage $whatsappMessage;
  45.         return $this;
  46.     }
  47.     public function getGarage(): Garage
  48.     {
  49.         return $this->garage;
  50.     }
  51.     public function setGarage(Garage $garage): self
  52.     {
  53.         $this->garage $garage;
  54.         return $this;
  55.     }
  56. }