src/Entity/System/CustomerAnswer.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity\System;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity(repositoryClass="App\Repository\System\CustomerAnswerRepository")
  6.  *
  7.  * @ORM\Table(name="answer_customer")
  8.  */
  9. class CustomerAnswer
  10. {
  11.     /**
  12.      * @var int
  13.      *
  14.      * @ORM\Id
  15.      *
  16.      * @ORM\GeneratedValue(strategy="AUTO")
  17.      *
  18.      * @ORM\Column(type="integer", name="id_answer_customer")
  19.      */
  20.     private $id;
  21.     /**
  22.      * @var int
  23.      *
  24.      * @ORM\Column(type="integer", name="id_questions")
  25.      */
  26.     private $questionId;
  27.     /**
  28.      * @var int|null
  29.      *
  30.      * @ORM\Column(type="integer", name="id_answer")
  31.      */
  32.     private $answerId;
  33.     /**
  34.      * @var Customer
  35.      *
  36.      * @ORM\ManyToOne(targetEntity="App\Entity\System\Customer")
  37.      *
  38.      * @ORM\JoinColumn(name="id_customer", referencedColumnName="id_customer",referencedColumnName="id_customer")
  39.      */
  40.     private $customer;
  41.     /**
  42.      * @var string|null
  43.      *
  44.      * @ORM\Column(type="string", length=100, nullable=true)
  45.      */
  46.     private $value;
  47.     /**
  48.      * @return int
  49.      */
  50.     public function getId(): int
  51.     {
  52.         return $this->id;
  53.     }
  54.     /**
  55.      * @param int $id
  56.      *
  57.      * @return CustomerAnswer
  58.      */
  59.     public function setId(int $id): self
  60.     {
  61.         $this->id $id;
  62.         return $this;
  63.     }
  64.     /**
  65.      * @return int
  66.      */
  67.     public function getQuestionId(): int
  68.     {
  69.         return $this->questionId;
  70.     }
  71.     /**
  72.      * @param int $questionId
  73.      */
  74.     public function setQuestionId(int $questionId): void
  75.     {
  76.         $this->questionId $questionId;
  77.     }
  78.     /**
  79.      * @return int|null
  80.      */
  81.     public function getAnswerId(): ?int
  82.     {
  83.         return $this->answerId;
  84.     }
  85.     /**
  86.      * @param int|null $answerId
  87.      */
  88.     public function setAnswerId(?int $answerId): void
  89.     {
  90.         $this->answerId $answerId;
  91.     }
  92.     /**
  93.      * @return Customer
  94.      */
  95.     public function getCustomer(): Customer
  96.     {
  97.         return $this->customer;
  98.     }
  99.     /**
  100.      * @param Customer $customer
  101.      *
  102.      * @return CustomerAnswer
  103.      */
  104.     public function setCustomer(Customer $customer): self
  105.     {
  106.         $this->customer $customer;
  107.         return $this;
  108.     }
  109.     /**
  110.      * @return string|null
  111.      */
  112.     public function getValue(): ?string
  113.     {
  114.         return $this->value;
  115.     }
  116.     /**
  117.      * @param string|null $value
  118.      *
  119.      * @return CustomerAnswer
  120.      */
  121.     public function setValue(?string $value): self
  122.     {
  123.         $this->value $value;
  124.         return $this;
  125.     }
  126. }