src/Entity/CRM/SurveyResponse.php line 9
<?php// src/Entity/SurveyResponse.phpnamespace App\Entity\CRM;use App\Repository\SurveyResponseRepository;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: SurveyResponseRepository::class)]class SurveyResponse{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column(type: 'integer')]private ?int $id = null;#[ORM\Column(type: 'datetime')]private ?\DateTimeInterface $createdAt = null;#[ORM\ManyToOne(targetEntity: Survey::class, inversedBy: 'responses')]#[ORM\JoinColumn(nullable: false)]private ?Survey $survey = null;#[ORM\ManyToOne(inversedBy: 'surveyResponses')]#[ORM\JoinColumn(nullable: false)]private ?SurveyQuestion $surveyQuestion = null;#[ORM\Column]private ?int $answer = null;#[ORM\ManyToOne(inversedBy: 'surveyResponses')]private ?Order $orderInstance = null;#[ORM\ManyToOne(inversedBy: 'surveyResponses')]private ?Consultant $madeBy = null;public function __construct(){$this->createdAt = new \DateTime();}public function getId(): ?int{return $this->id;}public function getCreatedAt(): ?\DateTimeInterface{return $this->createdAt;}public function setCreatedAt(\DateTimeInterface $createdAt): self{$this->createdAt = $createdAt;return $this;}public function getSurvey(): ?Survey{return $this->survey;}public function setSurvey(?Survey $survey): self{$this->survey = $survey;return $this;}public function getSurveyQuestion(): ?SurveyQuestion{return $this->surveyQuestion;}public function setSurveyQuestion(?SurveyQuestion $surveyQuestion): static{$this->surveyQuestion = $surveyQuestion;return $this;}public function getAnswer(): ?int{return $this->answer;}public function setAnswer(int $answer): static{$this->answer = $answer;return $this;}public function getOrderInstance(): ?Order{return $this->orderInstance;}public function setOrderInstance(?Order $orderInstance): static{$this->orderInstance = $orderInstance;return $this;}public function getMadeBy(): ?Consultant{return $this->madeBy;}public function setMadeBy(?Consultant $madeBy): static{$this->madeBy = $madeBy;return $this;}}