<?php
namespace App\Entity;
use App\Repository\ScoringQuizRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=ScoringQuizRepository::class)
*/
class ScoringQuiz
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\OneToOne(targetEntity=BlogPost::class, inversedBy="scoringQuiz", cascade={"persist", "remove"})
* @ORM\JoinColumn(nullable=false)
*/
private $blogPost;
/**
* @ORM\OneToMany(targetEntity=ScoringSection::class, mappedBy="scoringQuiz", orphanRemoval=true)
*/
private $scoringSections;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $proposition_1_label;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $proposition_2_label;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $proposition_3_label;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $proposition_4_label;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $proposition_5_label;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $proposition_1_color;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $proposition_2_color;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $proposition_3_color;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $proposition_4_color;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $proposition_5_color;
/**
* @ORM\OneToMany(targetEntity=Scoring::class, mappedBy="scoringQuiz", orphanRemoval=true)
*/
private $scorings;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $resultLabel;
/**
* @ORM\Column(type="boolean")
*/
private $showResponseButtons = true;
/**
* @ORM\Column(type="boolean")
*/
private $showWeightedResult = true;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $radarChartLabel;
/**
* @ORM\Column(type="boolean")
*/
private $showRadarChart = true;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $resultLabel2;
/**
* @ORM\Column(type="boolean")
*/
private $showResultLabel1 = true;
/**
* @ORM\Column(type="boolean")
*/
private $showResultLabel2 = true;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $resultColor;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $responseRetentionDays;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $sectionLegends;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $sectionLegends2;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $scoringLegends;
/**
* @ORM\OneToMany(targetEntity=ScoringQuizResultDisplay::class, mappedBy="scoringQuiz", cascade={"persist", "remove"}, orphanRemoval=true)
*/
private $resultDisplayConfigs;
public function __construct()
{
$this->scoringSections = new ArrayCollection();
$this->scorings = new ArrayCollection();
$this->resultDisplayConfigs = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getBlogPost(): ?BlogPost
{
return $this->blogPost;
}
public function setBlogPost(?BlogPost $blogPost): self
{
$this->blogPost = $blogPost;
return $this;
}
/**
* @return Collection<int, ScoringSection>
*/
public function getScoringSections(): Collection
{
return $this->scoringSections;
}
public function addScoringSection(ScoringSection $scoringSection): self
{
if (!$this->scoringSections->contains($scoringSection)) {
$this->scoringSections[] = $scoringSection;
$scoringSection->setScoringQuiz($this);
}
return $this;
}
public function removeScoringSection(ScoringSection $scoringSection): self
{
if ($this->scoringSections->removeElement($scoringSection)) {
// set the owning side to null (unless already changed)
if ($scoringSection->getScoringQuiz() === $this) {
$scoringSection->setScoringQuiz(null);
}
}
return $this;
}
/**
* @return Collection<int, Scoring>
*/
public function getScorings(): Collection
{
return $this->scorings;
}
public function addScoring(Scoring $scoring): self
{
if (!$this->scorings->contains($scoring)) {
$this->scorings[] = $scoring;
$scoring->setScoringQuiz($this);
}
return $this;
}
public function removeScoring(Scoring $scoring): self
{
if ($this->scorings->removeElement($scoring)) {
// set the owning side to null (unless already changed)
if ($scoring->getScoringQuiz() === $this) {
$scoring->setScoringQuiz(null);
}
}
return $this;
}
public function getProposition1Label(): ?string
{
return $this->proposition_1_label;
}
public function setProposition1Label(?string $proposition_1_label): self
{
$this->proposition_1_label = $proposition_1_label;
return $this;
}
public function getProposition2Label(): ?string
{
return $this->proposition_2_label;
}
public function setProposition2Label(?string $proposition_2_label): self
{
$this->proposition_2_label = $proposition_2_label;
return $this;
}
public function getProposition3Label(): ?string
{
return $this->proposition_3_label;
}
public function setProposition3Label(?string $proposition_3_label): self
{
$this->proposition_3_label = $proposition_3_label;
return $this;
}
public function getProposition4Label(): ?string
{
return $this->proposition_4_label;
}
public function setProposition4Label(?string $proposition_4_label): self
{
$this->proposition_4_label = $proposition_4_label;
return $this;
}
public function getProposition5Label(): ?string
{
return $this->proposition_5_label;
}
public function setProposition5Label(?string $proposition_5_label): self
{
$this->proposition_5_label = $proposition_5_label;
return $this;
}
public function getProposition1Color(): ?string
{
return $this->proposition_1_color;
}
public function setProposition1Color(?string $proposition_1_color): self
{
$this->proposition_1_color = $proposition_1_color;
return $this;
}
public function getProposition2Color(): ?string
{
return $this->proposition_2_color;
}
public function setProposition2Color(?string $proposition_2_color): self
{
$this->proposition_2_color = $proposition_2_color;
return $this;
}
public function getProposition3Color(): ?string
{
return $this->proposition_3_color;
}
public function setProposition3Color(?string $proposition_3_color): self
{
$this->proposition_3_color = $proposition_3_color;
return $this;
}
public function getProposition4Color(): ?string
{
return $this->proposition_4_color;
}
public function setProposition4Color(?string $proposition_4_color): self
{
$this->proposition_4_color = $proposition_4_color;
return $this;
}
public function getProposition5Color(): ?string
{
return $this->proposition_5_color;
}
public function setProposition5Color(?string $proposition_5_color): self
{
$this->proposition_5_color = $proposition_5_color;
return $this;
}
public function getResultLabel(): ?string
{
return $this->resultLabel;
}
public function setResultLabel(?string $resultLabel): self
{
$this->resultLabel = $resultLabel;
return $this;
}
public function isShowResponseButtons(): bool
{
return $this->showResponseButtons;
}
public function setShowResponseButtons(bool $showResponseButtons): self
{
$this->showResponseButtons = $showResponseButtons;
return $this;
}
public function isShowWeightedResult(): bool
{
return $this->showWeightedResult;
}
public function setShowWeightedResult(bool $showWeightedResult): self
{
$this->showWeightedResult = $showWeightedResult;
return $this;
}
public function getRadarChartLabel(): ?string
{
return $this->radarChartLabel;
}
public function setRadarChartLabel(?string $radarChartLabel): self
{
$this->radarChartLabel = $radarChartLabel;
return $this;
}
public function isShowRadarChart(): bool
{
return $this->showRadarChart;
}
public function setShowRadarChart(bool $showRadarChart): self
{
$this->showRadarChart = $showRadarChart;
return $this;
}
/**
* @return Collection|ScoringQuizResultDisplay[]
*/
public function getResultDisplayConfigs(): Collection
{
return $this->resultDisplayConfigs;
}
public function addResultDisplayConfig(ScoringQuizResultDisplay $resultDisplayConfig): self
{
if (!$this->resultDisplayConfigs->contains($resultDisplayConfig)) {
$this->resultDisplayConfigs[] = $resultDisplayConfig;
$resultDisplayConfig->setQuiz($this);
}
return $this;
}
public function removeResultDisplayConfig(ScoringQuizResultDisplay $resultDisplayConfig): self
{
if ($this->resultDisplayConfigs->removeElement($resultDisplayConfig)) {
// set the owning side to null (unless already changed)
if ($resultDisplayConfig->getQuiz() === $this) {
$resultDisplayConfig->setQuiz(null);
}
}
return $this;
}
public function getResultLabel2(): ?string
{
return $this->resultLabel2;
}
public function setResultLabel2(?string $resultLabel2): self
{
$this->resultLabel2 = $resultLabel2;
return $this;
}
public function isShowResultLabel1(): bool
{
return $this->showResultLabel1;
}
public function setShowResultLabel1(bool $showResultLabel1): self
{
$this->showResultLabel1 = $showResultLabel1;
return $this;
}
public function isShowResultLabel2(): bool
{
return $this->showResultLabel2;
}
public function setShowResultLabel2(bool $showResultLabel2): self
{
$this->showResultLabel2 = $showResultLabel2;
return $this;
}
public function getResultColor(): ?string
{
return $this->resultColor;
}
public function setResultColor(?string $resultColor): self
{
$this->resultColor = $resultColor;
return $this;
}
public function getResponseRetentionDays(): ?int
{
return $this->responseRetentionDays;
}
public function setResponseRetentionDays(?int $responseRetentionDays): self
{
$this->responseRetentionDays = $responseRetentionDays;
return $this;
}
public function getSectionLegends(): ?string
{
return $this->sectionLegends;
}
public function setSectionLegends(?string $sectionLegends): self
{
$this->sectionLegends = $sectionLegends;
return $this;
}
public function getSectionLegends2(): ?string
{
return $this->sectionLegends2;
}
public function setSectionLegends2(?string $sectionLegends2): self
{
$this->sectionLegends2 = $sectionLegends2;
return $this;
}
public function getScoringLegends(): ?string
{
return $this->scoringLegends;
}
public function setScoringLegends(?string $scoringLegends): self
{
$this->scoringLegends = $scoringLegends;
return $this;
}
}