src/Entity/Gos/CancellationFormAnswer.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Gos;
  3. use App\Entity\Gos\RenewalOffer\RenewalOffer;
  4. use App\Repository\Gos\CancellationFormAnswerRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass=CancellationFormAnswerRepository::class)
  8.  * @ORM\HasLifecycleCallbacks
  9.  */
  10. class CancellationFormAnswer
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\ManyToOne(targetEntity=CancellationForm::class, inversedBy="cancellationFormAnswers")
  20.      * @ORM\JoinColumn(nullable=false)
  21.      */
  22.     private $cancellationForm;
  23.     /**
  24.      * @ORM\Column(type="text")
  25.      */
  26.     private $content;
  27.     /**
  28.      * @ORM\ManyToOne(targetEntity=User::class)
  29.      */
  30.     private $user;
  31.     /**
  32.      * @ORM\Column(type="datetime")
  33.      */
  34.     private $createdAt;
  35.     /**
  36.      * @ORM\Column(type="datetime", nullable=true)
  37.      */
  38.     private $updatedAt;
  39.     /**
  40.      * @ORM\Column(type="string", length=255, nullable=true)
  41.      */
  42.     private $email;
  43.     /**
  44.      * @ORM\ManyToOne(targetEntity=ProductVariant::class)
  45.      */
  46.     private $productVariant;
  47.     /**
  48.      * @ORM\Column(type="string", length=255, nullable=true)
  49.      */
  50.     private $clientNumber;
  51.     /**
  52.      * @ORM\Column(type="string", length=255, nullable=true)
  53.      */
  54.     private $orderNumber;
  55.     /**
  56.      * @ORM\Column(type="string", length=255, nullable=true)
  57.      */
  58.     private $clientDetails;
  59.     /**
  60.      * @ORM\Column(type="integer", nullable=true)
  61.      */
  62.     private $emailSentId;
  63.     /**
  64.      * @ORM\Column(type="string", length=255, nullable=true)
  65.      */
  66.     private $productType;
  67.     /**
  68.      * @ORM\Column(type="string", length=255, nullable=true)
  69.      */
  70.     private $clientType;
  71.     /**
  72.      * @ORM\ManyToOne(targetEntity=CancellationQuestionChoiceAction::class)
  73.      */
  74.     private $action;
  75.     /**
  76.      * @ORM\ManyToOne(targetEntity=RenewalOffer::class)
  77.      */
  78.     private $renewalOffer;
  79.     /**
  80.      * @ORM\ManyToOne(targetEntity=ProductGroup::class)
  81.      */
  82.     private $productGroup;
  83.     /**
  84.      * @ORM\ManyToOne(targetEntity=ProductBatch::class)
  85.      */
  86.     private $productBatch;
  87.     /** @ORM\PrePersist() */
  88.     public function prePersist()
  89.     {
  90.         $this->createdAt = new \DateTime();
  91.     }
  92.     /** @ORM\PreUpdate() */
  93.     public function preUpdate()
  94.     {
  95.         $this->updatedAt = new \DateTime();
  96.     }
  97.     public function getId(): ?int
  98.     {
  99.         return $this->id;
  100.     }
  101.     public function getCancellationForm(): ?CancellationForm
  102.     {
  103.         return $this->cancellationForm;
  104.     }
  105.     public function setCancellationForm(?CancellationForm $cancellationForm): self
  106.     {
  107.         $this->cancellationForm $cancellationForm;
  108.         return $this;
  109.     }
  110.     public function getContent(): ?string
  111.     {
  112.         return $this->content;
  113.     }
  114.     public function setContent(string $content): self
  115.     {
  116.         $this->content $content;
  117.         return $this;
  118.     }
  119.     public function getUser(): ?User
  120.     {
  121.         return $this->user;
  122.     }
  123.     public function setUser(?User $user): self
  124.     {
  125.         $this->user $user;
  126.         return $this;
  127.     }
  128.     public function getCreatedAt()
  129.     {
  130.         return $this->createdAt;
  131.     }
  132.     public function setCreatedAt($createdAt): self
  133.     {
  134.         $this->createdAt $createdAt;
  135.         return $this;
  136.     }
  137.     public function getUpdatedAt()
  138.     {
  139.         return $this->updatedAt;
  140.     }
  141.     public function setUpdatedAt($updatedAt): self
  142.     {
  143.         $this->updatedAt $updatedAt;
  144.         return $this;
  145.     }
  146.     public function getEmail(): ?string
  147.     {
  148.         return $this->email;
  149.     }
  150.     public function setEmail(?string $email): self
  151.     {
  152.         $this->email $email;
  153.         return $this;
  154.     }
  155.     public function getProductVariant(): ?ProductVariant
  156.     {
  157.         return $this->productVariant;
  158.     }
  159.     public function setProductVariant(?ProductVariant $productVariant): self
  160.     {
  161.         $this->productVariant $productVariant;
  162.         return $this;
  163.     }
  164.     public function getClientNumber(): ?string
  165.     {
  166.         return $this->clientNumber;
  167.     }
  168.     public function setClientNumber(?string $clientNumber): self
  169.     {
  170.         $this->clientNumber $clientNumber;
  171.         return $this;
  172.     }
  173.     public function getOrderNumber(): ?string
  174.     {
  175.         return $this->orderNumber;
  176.     }
  177.     public function setOrderNumber(?string $orderNumber): self
  178.     {
  179.         $this->orderNumber $orderNumber;
  180.         return $this;
  181.     }
  182.     public function getClientDetails(): ?string
  183.     {
  184.         return $this->clientDetails;
  185.     }
  186.     public function setClientDetails(?string $clientDetails): self
  187.     {
  188.         $this->clientDetails $clientDetails;
  189.         return $this;
  190.     }
  191.     public function getEmailSentId(): ?int
  192.     {
  193.         return $this->emailSentId;
  194.     }
  195.     public function setEmailSentId(?int $emailSentId): self
  196.     {
  197.         $this->emailSentId $emailSentId;
  198.         return $this;
  199.     }
  200.     public function getProductType(): ?string
  201.     {
  202.         return $this->productType;
  203.     }
  204.     public function setProductType(?string $productType): self
  205.     {
  206.         $this->productType $productType;
  207.         return $this;
  208.     }
  209.     public function getClientType(): ?string
  210.     {
  211.         return $this->clientType;
  212.     }
  213.     public function setClientType(?string $clientType): self
  214.     {
  215.         $this->clientType $clientType;
  216.         return $this;
  217.     }
  218.     public function getAction(): ?CancellationQuestionChoiceAction
  219.     {
  220.         return $this->action;
  221.     }
  222.     public function setAction(?CancellationQuestionChoiceAction $action): self
  223.     {
  224.         $this->action $action;
  225.         return $this;
  226.     }
  227.     public function getRenewalOffer(): ?RenewalOffer
  228.     {
  229.         return $this->renewalOffer;
  230.     }
  231.     public function setRenewalOffer(?RenewalOffer $renewalOffer): self
  232.     {
  233.         $this->renewalOffer $renewalOffer;
  234.         return $this;
  235.     }
  236.     public function getProductGroup(): ?ProductGroup
  237.     {
  238.         return $this->productGroup;
  239.     }
  240.     public function setProductGroup(?ProductGroup $productGroup): self
  241.     {
  242.         $this->productGroup $productGroup;
  243.         return $this;
  244.     }
  245.     public function getProductBatch(): ?ProductBatch
  246.     {
  247.         return $this->productBatch;
  248.     }
  249.     public function setProductBatch(?ProductBatch $productBatch): self
  250.     {
  251.         $this->productBatch $productBatch;
  252.         return $this;
  253.     }
  254. }