<?php
namespace App\Entity\Gos;
use App\Entity\Gos\RenewalOffer\RenewalOffer;
use App\Repository\Gos\CancellationFormAnswerRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=CancellationFormAnswerRepository::class)
* @ORM\HasLifecycleCallbacks
*/
class CancellationFormAnswer
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=CancellationForm::class, inversedBy="cancellationFormAnswers")
* @ORM\JoinColumn(nullable=false)
*/
private $cancellationForm;
/**
* @ORM\Column(type="text")
*/
private $content;
/**
* @ORM\ManyToOne(targetEntity=User::class)
*/
private $user;
/**
* @ORM\Column(type="datetime")
*/
private $createdAt;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $updatedAt;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $email;
/**
* @ORM\ManyToOne(targetEntity=ProductVariant::class)
*/
private $productVariant;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $clientNumber;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $orderNumber;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $clientDetails;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $emailSentId;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $productType;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $clientType;
/**
* @ORM\ManyToOne(targetEntity=CancellationQuestionChoiceAction::class)
*/
private $action;
/**
* @ORM\ManyToOne(targetEntity=RenewalOffer::class)
*/
private $renewalOffer;
/**
* @ORM\ManyToOne(targetEntity=ProductGroup::class)
*/
private $productGroup;
/**
* @ORM\ManyToOne(targetEntity=ProductBatch::class)
*/
private $productBatch;
/** @ORM\PrePersist() */
public function prePersist()
{
$this->createdAt = new \DateTime();
}
/** @ORM\PreUpdate() */
public function preUpdate()
{
$this->updatedAt = new \DateTime();
}
public function getId(): ?int
{
return $this->id;
}
public function getCancellationForm(): ?CancellationForm
{
return $this->cancellationForm;
}
public function setCancellationForm(?CancellationForm $cancellationForm): self
{
$this->cancellationForm = $cancellationForm;
return $this;
}
public function getContent(): ?string
{
return $this->content;
}
public function setContent(string $content): self
{
$this->content = $content;
return $this;
}
public function getUser(): ?User
{
return $this->user;
}
public function setUser(?User $user): self
{
$this->user = $user;
return $this;
}
public function getCreatedAt()
{
return $this->createdAt;
}
public function setCreatedAt($createdAt): self
{
$this->createdAt = $createdAt;
return $this;
}
public function getUpdatedAt()
{
return $this->updatedAt;
}
public function setUpdatedAt($updatedAt): self
{
$this->updatedAt = $updatedAt;
return $this;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(?string $email): self
{
$this->email = $email;
return $this;
}
public function getProductVariant(): ?ProductVariant
{
return $this->productVariant;
}
public function setProductVariant(?ProductVariant $productVariant): self
{
$this->productVariant = $productVariant;
return $this;
}
public function getClientNumber(): ?string
{
return $this->clientNumber;
}
public function setClientNumber(?string $clientNumber): self
{
$this->clientNumber = $clientNumber;
return $this;
}
public function getOrderNumber(): ?string
{
return $this->orderNumber;
}
public function setOrderNumber(?string $orderNumber): self
{
$this->orderNumber = $orderNumber;
return $this;
}
public function getClientDetails(): ?string
{
return $this->clientDetails;
}
public function setClientDetails(?string $clientDetails): self
{
$this->clientDetails = $clientDetails;
return $this;
}
public function getEmailSentId(): ?int
{
return $this->emailSentId;
}
public function setEmailSentId(?int $emailSentId): self
{
$this->emailSentId = $emailSentId;
return $this;
}
public function getProductType(): ?string
{
return $this->productType;
}
public function setProductType(?string $productType): self
{
$this->productType = $productType;
return $this;
}
public function getClientType(): ?string
{
return $this->clientType;
}
public function setClientType(?string $clientType): self
{
$this->clientType = $clientType;
return $this;
}
public function getAction(): ?CancellationQuestionChoiceAction
{
return $this->action;
}
public function setAction(?CancellationQuestionChoiceAction $action): self
{
$this->action = $action;
return $this;
}
public function getRenewalOffer(): ?RenewalOffer
{
return $this->renewalOffer;
}
public function setRenewalOffer(?RenewalOffer $renewalOffer): self
{
$this->renewalOffer = $renewalOffer;
return $this;
}
public function getProductGroup(): ?ProductGroup
{
return $this->productGroup;
}
public function setProductGroup(?ProductGroup $productGroup): self
{
$this->productGroup = $productGroup;
return $this;
}
public function getProductBatch(): ?ProductBatch
{
return $this->productBatch;
}
public function setProductBatch(?ProductBatch $productBatch): self
{
$this->productBatch = $productBatch;
return $this;
}
}