src/Entity/Risposte.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\RisposteRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassRisposteRepository::class)]
  6. class Risposte
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\ManyToOne(targetEntityQuestionari::class, inversedBy'rispostes')]
  13.     #[ORM\JoinColumn(nullablefalse)]
  14.     private $questionario;
  15.     #[ORM\ManyToOne(targetEntityQuestionariIniziati::class, inversedBy'rispostes')]
  16.     #[ORM\JoinColumn(nullablefalse)]
  17.     private $questionario_iniziato;
  18.     #[ORM\ManyToOne(targetEntityDomande::class, inversedBy'rispostes')]
  19.     #[ORM\JoinColumn(nullablefalse)]
  20.     private $domanda;
  21.     #[ORM\Column(type'text'nullabletrue)]
  22.     private $tipo_risposta;
  23.     #[ORM\Column(type'text'nullabletrue)]
  24.     private $opzioni_risposta;
  25.     #[ORM\Column(type'boolean')]
  26.     private $multipla;
  27.     #[ORM\Column(type'integer')]
  28.     private $posizione;
  29.     #[ORM\Column(type'text')]
  30.     private $risposta;
  31.     #[ORM\Column(type'boolean')]
  32.     private $obbligatoria;
  33.     #[ORM\Column(type'datetime_immutable')]
  34.     private $created_at;
  35.     #[ORM\Column(type'datetime_immutable')]
  36.     private $modified_at;
  37.     public function getId(): ?int
  38.     {
  39.         return $this->id;
  40.     }
  41.     public function getQuestionario(): ?Questionari
  42.     {
  43.         return $this->questionario;
  44.     }
  45.     public function setQuestionario(?Questionari $questionario): self
  46.     {
  47.         $this->questionario $questionario;
  48.         return $this;
  49.     }
  50.     public function getQuestionarioIniziato(): ?QuestionariIniziati
  51.     {
  52.         return $this->questionario_iniziato;
  53.     }
  54.     public function setQuestionarioIniziato(?QuestionariIniziati $questionario_iniziato): self
  55.     {
  56.         $this->questionario_iniziato $questionario_iniziato;
  57.         return $this;
  58.     }
  59.     public function getDomanda(): ?Domande
  60.     {
  61.         return $this->domanda;
  62.     }
  63.     public function setDomanda(?Domande $domanda): self
  64.     {
  65.         $this->domanda $domanda;
  66.         return $this;
  67.     }
  68.     public function getTipoRisposta(): ?string
  69.     {
  70.         return $this->tipo_risposta;
  71.     }
  72.     public function setTipoRisposta(?string $tipo_risposta): self
  73.     {
  74.         $this->tipo_risposta $tipo_risposta;
  75.         return $this;
  76.     }
  77.     public function getOpzioniRisposta(): ?string
  78.     {
  79.         return $this->opzioni_risposta;
  80.     }
  81.     public function setOpzioniRisposta(?string $opzioni_risposta): self
  82.     {
  83.         $this->opzioni_risposta $opzioni_risposta;
  84.         return $this;
  85.     }
  86.     public function isMultipla(): ?bool
  87.     {
  88.         return $this->multipla;
  89.     }
  90.     public function setMultipla(bool $multipla): self
  91.     {
  92.         $this->multipla $multipla;
  93.         return $this;
  94.     }
  95.     public function getPosizione(): ?int
  96.     {
  97.         return $this->posizione;
  98.     }
  99.     public function setPosizione(int $posizione): self
  100.     {
  101.         $this->posizione $posizione;
  102.         return $this;
  103.     }
  104.     public function getRisposta(): ?string
  105.     {
  106.         return $this->risposta;
  107.     }
  108.     public function setRisposta(string $risposta): self
  109.     {
  110.         $this->risposta $risposta;
  111.         return $this;
  112.     }
  113.     public function isObbligatoria(): ?bool
  114.     {
  115.         return $this->obbligatoria;
  116.     }
  117.     public function setObbligatoria(bool $obbligatoria): self
  118.     {
  119.         $this->obbligatoria $obbligatoria;
  120.         return $this;
  121.     }
  122.     public function getCreatedAt(): ?\DateTimeImmutable
  123.     {
  124.         return $this->created_at;
  125.     }
  126.     public function setCreatedAt(\DateTimeImmutable $created_at): self
  127.     {
  128.         $this->created_at $created_at;
  129.         return $this;
  130.     }
  131.     public function getModifiedAt(): ?\DateTimeImmutable
  132.     {
  133.         return $this->modified_at;
  134.     }
  135.     public function setModifiedAt(\DateTimeImmutable $modified_at): self
  136.     {
  137.         $this->modified_at $modified_at;
  138.         return $this;
  139.     }
  140. }