answer = ''; $this->correct = null; $this->comment = null; $this->ponderation = 0.0; $this->hotspotCoordinates = null; $this->hotspotType = null; $this->destination = null; $this->answerCode = null; } public function setAnswer(string $answer): self { $this->answer = $answer; return $this; } public function getAnswer(): string { return $this->answer; } /** * Set correct. * * @param int $correct */ public function setCorrect($correct): self { $this->correct = $correct; return $this; } /** * Get correct. * * @return int */ public function getCorrect() { return $this->correct; } /** * Set comment. * * @param string $comment */ public function setComment($comment): self { $this->comment = $comment; return $this; } /** * Get comment. * * @return string */ public function getComment() { return $this->comment; } /** * Set weight. * * @param float $weight */ public function setPonderation($weight): self { $this->ponderation = empty($weight) ? 0.0 : (float) $weight; return $this; } /** * Get weight. * * @return float */ public function getPonderation() { return $this->ponderation; } /** * Set position. * * @param int $position */ public function setPosition($position): self { $this->position = $position; return $this; } /** * Get position. * * @return int */ public function getPosition() { return $this->position; } /** * Set hotspotCoordinates. * * @param string $hotspotCoordinates */ public function setHotspotCoordinates($hotspotCoordinates): self { $this->hotspotCoordinates = $hotspotCoordinates; return $this; } /** * Get hotspotCoordinates. * * @return string */ public function getHotspotCoordinates() { return $this->hotspotCoordinates; } /** * Set hotspotType. * * @param string $hotspotType */ public function setHotspotType($hotspotType): self { $this->hotspotType = $hotspotType; return $this; } /** * Get hotspotType. * * @return string */ public function getHotspotType() { return $this->hotspotType; } /** * Set destination. * * @param string $destination */ public function setDestination($destination) { $this->destination = empty($destination) ? null : $destination; return $this; } /** * Get destination. * * @return string */ public function getDestination() { return $this->destination; } public function setAnswerCode(string $answerCode): self { $this->answerCode = $answerCode; return $this; } /** * Get answerCode. * * @return string */ public function getAnswerCode() { return $this->answerCode; } /** * Get iid. * * @return int */ public function getIid() { return $this->iid; } public function getQuestion(): CQuizQuestion { return $this->question; } public function setQuestion(CQuizQuestion $question): self { $this->question = $question; return $this; } }