src/Entity/ScoringQuiz.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ScoringQuizRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * @ORM\Entity(repositoryClass=ScoringQuizRepository::class)
  9.  */
  10. class ScoringQuiz
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\OneToOne(targetEntity=BlogPost::class, inversedBy="scoringQuiz", cascade={"persist", "remove"})
  20.      * @ORM\JoinColumn(nullable=false)
  21.      */
  22.     private $blogPost;
  23.     /**
  24.      * @ORM\OneToMany(targetEntity=ScoringSection::class, mappedBy="scoringQuiz", orphanRemoval=true)
  25.      */
  26.     private $scoringSections;
  27.     /**
  28.      * @ORM\Column(type="string", length=255, nullable=true)
  29.      */
  30.     private $proposition_1_label;
  31.     /**
  32.      * @ORM\Column(type="string", length=255, nullable=true)
  33.      */
  34.     private $proposition_2_label;
  35.     /**
  36.      * @ORM\Column(type="string", length=255, nullable=true)
  37.      */
  38.     private $proposition_3_label;
  39.     /**
  40.      * @ORM\Column(type="string", length=255, nullable=true)
  41.      */
  42.     private $proposition_4_label;
  43.     /**
  44.      * @ORM\Column(type="string", length=255, nullable=true)
  45.      */
  46.     private $proposition_5_label;
  47.     /**
  48.      * @ORM\Column(type="string", length=255, nullable=true)
  49.      */
  50.     private $proposition_1_color;
  51.     /**
  52.      * @ORM\Column(type="string", length=255, nullable=true)
  53.      */
  54.     private $proposition_2_color;
  55.     /**
  56.      * @ORM\Column(type="string", length=255, nullable=true)
  57.      */
  58.     private $proposition_3_color;
  59.     /**
  60.      * @ORM\Column(type="string", length=255, nullable=true)
  61.      */
  62.     private $proposition_4_color;
  63.     /**
  64.      * @ORM\Column(type="string", length=255, nullable=true)
  65.      */
  66.     private $proposition_5_color;
  67.     /**
  68.      * @ORM\OneToMany(targetEntity=Scoring::class, mappedBy="scoringQuiz", orphanRemoval=true)
  69.      */
  70.     private $scorings;
  71.     /**
  72.      * @ORM\Column(type="string", length=255, nullable=true)
  73.      */
  74.     private $resultLabel;
  75.     /**
  76.      * @ORM\Column(type="boolean")
  77.      */
  78.     private $showResponseButtons true;
  79.     /**
  80.      * @ORM\Column(type="boolean")
  81.      */
  82.     private $showWeightedResult true;
  83.     /**
  84.      * @ORM\Column(type="string", length=255, nullable=true)
  85.      */
  86.     private $radarChartLabel;
  87.     /**
  88.      * @ORM\Column(type="boolean")
  89.      */
  90.     private $showRadarChart true;
  91.     
  92.     /**
  93.      * @ORM\Column(type="string", length=255, nullable=true)
  94.      */
  95.     private $resultLabel2;
  96.     /**
  97.      * @ORM\Column(type="boolean")
  98.      */
  99.     private $showResultLabel1 true;
  100.     /**
  101.      * @ORM\Column(type="boolean")
  102.      */
  103.     private $showResultLabel2 true;
  104.     
  105.     /**
  106.      * @ORM\Column(type="string", length=255, nullable=true)
  107.      */
  108.     private $resultColor;
  109.     /**
  110.      * @ORM\Column(type="integer", nullable=true)
  111.      */
  112.     private $responseRetentionDays;
  113.     /**
  114.      * @ORM\Column(type="string", length=255, nullable=true)
  115.      */
  116.     private $sectionLegends;
  117.     /**
  118.      * @ORM\Column(type="string", length=255, nullable=true)
  119.      */
  120.     private $sectionLegends2;
  121.     /**
  122.      * @ORM\Column(type="string", length=255, nullable=true)
  123.      */
  124.     private $scoringLegends;
  125.     /**
  126.      * @ORM\OneToMany(targetEntity=ScoringQuizResultDisplay::class, mappedBy="scoringQuiz", cascade={"persist", "remove"}, orphanRemoval=true)
  127.      */
  128.     private $resultDisplayConfigs;
  129.     public function __construct()
  130.     {
  131.         $this->scoringSections = new ArrayCollection();
  132.         $this->scorings = new ArrayCollection();
  133.         $this->resultDisplayConfigs = new ArrayCollection();
  134.     }
  135.     public function getId(): ?int
  136.     {
  137.         return $this->id;
  138.     }
  139.     public function getBlogPost(): ?BlogPost
  140.     {
  141.         return $this->blogPost;
  142.     }
  143.     public function setBlogPost(?BlogPost $blogPost): self
  144.     {
  145.         $this->blogPost $blogPost;
  146.         return $this;
  147.     }
  148.     /**
  149.      * @return Collection<int, ScoringSection>
  150.      */
  151.     public function getScoringSections(): Collection
  152.     {
  153.         return $this->scoringSections;
  154.     }
  155.     public function addScoringSection(ScoringSection $scoringSection): self
  156.     {
  157.         if (!$this->scoringSections->contains($scoringSection)) {
  158.             $this->scoringSections[] = $scoringSection;
  159.             $scoringSection->setScoringQuiz($this);
  160.         }
  161.         return $this;
  162.     }
  163.     public function removeScoringSection(ScoringSection $scoringSection): self
  164.     {
  165.         if ($this->scoringSections->removeElement($scoringSection)) {
  166.             // set the owning side to null (unless already changed)
  167.             if ($scoringSection->getScoringQuiz() === $this) {
  168.                 $scoringSection->setScoringQuiz(null);
  169.             }
  170.         }
  171.         return $this;
  172.     }
  173.     /**
  174.      * @return Collection<int, Scoring>
  175.      */
  176.     public function getScorings(): Collection
  177.     {
  178.         return $this->scorings;
  179.     }
  180.     public function addScoring(Scoring $scoring): self
  181.     {
  182.         if (!$this->scorings->contains($scoring)) {
  183.             $this->scorings[] = $scoring;
  184.             $scoring->setScoringQuiz($this);
  185.         }
  186.         return $this;
  187.     }
  188.     public function removeScoring(Scoring $scoring): self
  189.     {
  190.         if ($this->scorings->removeElement($scoring)) {
  191.             // set the owning side to null (unless already changed)
  192.             if ($scoring->getScoringQuiz() === $this) {
  193.                 $scoring->setScoringQuiz(null);
  194.             }
  195.         }
  196.         return $this;
  197.     }
  198.     public function getProposition1Label(): ?string
  199.     {
  200.         return $this->proposition_1_label;
  201.     }
  202.     public function setProposition1Label(?string $proposition_1_label): self
  203.     {
  204.         $this->proposition_1_label $proposition_1_label;
  205.         return $this;
  206.     }
  207.     public function getProposition2Label(): ?string
  208.     {
  209.         return $this->proposition_2_label;
  210.     }
  211.     public function setProposition2Label(?string $proposition_2_label): self
  212.     {
  213.         $this->proposition_2_label $proposition_2_label;
  214.         return $this;
  215.     }
  216.     public function getProposition3Label(): ?string
  217.     {
  218.         return $this->proposition_3_label;
  219.     }
  220.     public function setProposition3Label(?string $proposition_3_label): self
  221.     {
  222.         $this->proposition_3_label $proposition_3_label;
  223.         return $this;
  224.     }
  225.     public function getProposition4Label(): ?string
  226.     {
  227.         return $this->proposition_4_label;
  228.     }
  229.     public function setProposition4Label(?string $proposition_4_label): self
  230.     {
  231.         $this->proposition_4_label $proposition_4_label;
  232.         return $this;
  233.     }
  234.     public function getProposition5Label(): ?string
  235.     {
  236.         return $this->proposition_5_label;
  237.     }
  238.     public function setProposition5Label(?string $proposition_5_label): self
  239.     {
  240.         $this->proposition_5_label $proposition_5_label;
  241.         return $this;
  242.     }
  243.     public function getProposition1Color(): ?string
  244.     {
  245.         return $this->proposition_1_color;
  246.     }
  247.     public function setProposition1Color(?string $proposition_1_color): self
  248.     {
  249.         $this->proposition_1_color $proposition_1_color;
  250.         return $this;
  251.     }
  252.     public function getProposition2Color(): ?string
  253.     {
  254.         return $this->proposition_2_color;
  255.     }
  256.     public function setProposition2Color(?string $proposition_2_color): self
  257.     {
  258.         $this->proposition_2_color $proposition_2_color;
  259.         return $this;
  260.     }
  261.     public function getProposition3Color(): ?string
  262.     {
  263.         return $this->proposition_3_color;
  264.     }
  265.     public function setProposition3Color(?string $proposition_3_color): self
  266.     {
  267.         $this->proposition_3_color $proposition_3_color;
  268.         return $this;
  269.     }
  270.     public function getProposition4Color(): ?string
  271.     {
  272.         return $this->proposition_4_color;
  273.     }
  274.     public function setProposition4Color(?string $proposition_4_color): self
  275.     {
  276.         $this->proposition_4_color $proposition_4_color;
  277.         return $this;
  278.     }
  279.     public function getProposition5Color(): ?string
  280.     {
  281.         return $this->proposition_5_color;
  282.     }
  283.     public function setProposition5Color(?string $proposition_5_color): self
  284.     {
  285.         $this->proposition_5_color $proposition_5_color;
  286.         return $this;
  287.     }
  288.     public function getResultLabel(): ?string
  289.     {
  290.         return $this->resultLabel;
  291.     }
  292.     public function setResultLabel(?string $resultLabel): self
  293.     {
  294.         $this->resultLabel $resultLabel;
  295.         return $this;
  296.     }
  297.     public function isShowResponseButtons(): bool
  298.     {
  299.         return $this->showResponseButtons;
  300.     }
  301.     public function setShowResponseButtons(bool $showResponseButtons): self
  302.     {
  303.         $this->showResponseButtons $showResponseButtons;
  304.         return $this;
  305.     }
  306.     public function isShowWeightedResult(): bool
  307.     {
  308.         return $this->showWeightedResult;
  309.     }
  310.     public function setShowWeightedResult(bool $showWeightedResult): self
  311.     {
  312.         $this->showWeightedResult $showWeightedResult;
  313.         return $this;
  314.     }
  315.     public function getRadarChartLabel(): ?string
  316.     {
  317.         return $this->radarChartLabel;
  318.     }
  319.     public function setRadarChartLabel(?string $radarChartLabel): self
  320.     {
  321.         $this->radarChartLabel $radarChartLabel;
  322.         return $this;
  323.     }
  324.     public function isShowRadarChart(): bool
  325.     {
  326.         return $this->showRadarChart;
  327.     }
  328.     public function setShowRadarChart(bool $showRadarChart): self
  329.     {
  330.         $this->showRadarChart $showRadarChart;
  331.         return $this;
  332.     }
  333.     /**
  334.      * @return Collection|ScoringQuizResultDisplay[]
  335.      */
  336.     public function getResultDisplayConfigs(): Collection
  337.     {
  338.         return $this->resultDisplayConfigs;
  339.     }
  340.     public function addResultDisplayConfig(ScoringQuizResultDisplay $resultDisplayConfig): self
  341.     {
  342.         if (!$this->resultDisplayConfigs->contains($resultDisplayConfig)) {
  343.             $this->resultDisplayConfigs[] = $resultDisplayConfig;
  344.             $resultDisplayConfig->setQuiz($this);
  345.         }
  346.         return $this;
  347.     }
  348.     public function removeResultDisplayConfig(ScoringQuizResultDisplay $resultDisplayConfig): self
  349.     {
  350.         if ($this->resultDisplayConfigs->removeElement($resultDisplayConfig)) {
  351.             // set the owning side to null (unless already changed)
  352.             if ($resultDisplayConfig->getQuiz() === $this) {
  353.                 $resultDisplayConfig->setQuiz(null);
  354.             }
  355.         }
  356.         return $this;
  357.     }
  358.     public function getResultLabel2(): ?string
  359.     {
  360.         return $this->resultLabel2;
  361.     }
  362.     public function setResultLabel2(?string $resultLabel2): self
  363.     {
  364.         $this->resultLabel2 $resultLabel2;
  365.         return $this;
  366.     }
  367.     public function isShowResultLabel1(): bool
  368.     {
  369.         return $this->showResultLabel1;
  370.     }
  371.     public function setShowResultLabel1(bool $showResultLabel1): self
  372.     {
  373.         $this->showResultLabel1 $showResultLabel1;
  374.         return $this;
  375.     }
  376.     public function isShowResultLabel2(): bool
  377.     {
  378.         return $this->showResultLabel2;
  379.     }
  380.     public function setShowResultLabel2(bool $showResultLabel2): self
  381.     {
  382.         $this->showResultLabel2 $showResultLabel2;
  383.         return $this;
  384.     }
  385.     public function getResultColor(): ?string
  386.     {
  387.         return $this->resultColor;
  388.     }
  389.     public function setResultColor(?string $resultColor): self
  390.     {
  391.         $this->resultColor $resultColor;
  392.         return $this;
  393.     }
  394.     public function getResponseRetentionDays(): ?int
  395.     {
  396.         return $this->responseRetentionDays;
  397.     }
  398.     public function setResponseRetentionDays(?int $responseRetentionDays): self
  399.     {
  400.         $this->responseRetentionDays $responseRetentionDays;
  401.         return $this;
  402.     }
  403.     public function getSectionLegends(): ?string
  404.     {
  405.         return $this->sectionLegends;
  406.     }
  407.     public function setSectionLegends(?string $sectionLegends): self
  408.     {
  409.         $this->sectionLegends $sectionLegends;
  410.         return $this;
  411.     }
  412.     public function getSectionLegends2(): ?string
  413.     {
  414.         return $this->sectionLegends2;
  415.     }
  416.     public function setSectionLegends2(?string $sectionLegends2): self
  417.     {
  418.         $this->sectionLegends2 $sectionLegends2;
  419.         return $this;
  420.     }
  421.     
  422.     public function getScoringLegends(): ?string
  423.     {
  424.         return $this->scoringLegends;
  425.     }
  426.     public function setScoringLegends(?string $scoringLegends): self
  427.     {
  428.         $this->scoringLegends $scoringLegends;
  429.         return $this;
  430.     }
  431. }