Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
chamilo-lms/src/CourseBundle/Entity/CSurveyAnswer.php

135 lines
2.4 KiB

<?php
declare(strict_types=1);
/* For licensing terms, see /license.txt */
namespace Chamilo\CourseBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* CSurveyAnswer.
*
* @ORM\Table(
* name="c_survey_answer",
* indexes={
* }
* )
* @ORM\Entity
*/
class CSurveyAnswer
{
/**
* @ORM\Column(name="iid", type="integer")
* @ORM\Id
* @ORM\GeneratedValue
*/
protected int $iid;
/**
* @ORM\ManyToOne(targetEntity="CSurvey")
* @ORM\JoinColumn(name="survey_id", referencedColumnName="iid")
*/
protected CSurvey $survey;
/**
* @ORM\ManyToOne(targetEntity="CSurveyQuestion", inversedBy="answers")
* @ORM\JoinColumn(name="question_id", referencedColumnName="iid")
*/
protected CSurveyQuestion $question;
/**
* @ORM\Column(name="option_id", type="text", nullable=false)
*/
protected string $optionId;
/**
* @ORM\Column(name="value", type="integer", nullable=false)
*/
protected int $value;
/**
* @ORM\Column(name="user", type="string", length=250, nullable=false)
*/
protected string $user;
public function __construct()
{
}
public function getIid(): int
{
return $this->iid;
}
public function setValue(int $value): self
{
$this->value = $value;
return $this;
}
/**
* Get value.
*
* @return int
*/
public function getValue()
{
return $this->value;
}
public function getSurvey(): CSurvey
{
return $this->survey;
}
public function setSurvey(CSurvey $survey): self
{
$this->survey = $survey;
return $this;
}
public function getQuestion(): CSurveyQuestion
{
return $this->question;
}
public function setQuestion(CSurveyQuestion $question): self
{
$this->question = $question;
return $this;
}
public function setUser(string $user): self
{
$this->user = $user;
return $this;
}
/**
* Get user.
*
* @return string
*/
public function getUser()
{
return $this->user;
}
public function getOptionId(): string
{
return $this->optionId;
}
public function setOptionId(string $optionId): self
{
$this->optionId = $optionId;
return $this;
}
}