123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383 |
- <?php
- namespace Entity;
- use Doctrine\ORM\Mapping as ORM;
- /**
- * TrackEAttempt
- *
- * @ORM\Table(name="track_e_attempt")
- * @ORM\Entity(repositoryClass="Entity\Repository\TrackAttemptRepository")
- */
- class TrackAttempt
- {
- /**
- * @var integer
- *
- * @ORM\Column(name="id", type="integer", precision=0, scale=0, nullable=false, unique=false)
- * @ORM\Id
- * @ORM\GeneratedValue(strategy="IDENTITY")
- */
- private $id;
- /**
- * @var integer
- *
- * @ORM\Column(name="exe_id", type="integer", precision=0, scale=0, nullable=true, unique=false)
- */
- private $exeId;
- /**
- * @var integer
- *
- * @ORM\Column(name="user_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
- */
- private $userId;
- /**
- * @var integer
- *
- * @ORM\Column(name="question_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
- */
- private $questionId;
- /**
- * @var string
- *
- * @ORM\Column(name="answer", type="text", precision=0, scale=0, nullable=false, unique=false)
- */
- private $answer;
- /**
- * @var string
- *
- * @ORM\Column(name="teacher_comment", type="text", precision=0, scale=0, nullable=false, unique=false)
- */
- private $teacherComment;
- /**
- * @var float
- *
- * @ORM\Column(name="marks", type="float", precision=0, scale=0, nullable=false, unique=false)
- */
- private $marks;
- /**
- * @var integer
- *
- * @ORM\Column(name="position", type="integer", precision=0, scale=0, nullable=true, unique=false)
- */
- private $position;
- /**
- * @var \DateTime
- *
- * @ORM\Column(name="tms", type="datetime", precision=0, scale=0, nullable=false, unique=false)
- */
- private $tms;
- /**
- * @var integer
- *
- * @ORM\Column(name="session_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
- */
- private $sessionId;
- /**
- * @var integer
- *
- * @ORM\Column(name="c_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
- */
- private $cId;
- /**
- * @var string
- *
- * @ORM\Column(name="filename", type="string", length=255, precision=0, scale=0, nullable=true, unique=false)
- */
- private $filename;
- /**
- * @ORM\ManyToOne(targetEntity="TrackExercise")
- * @ORM\JoinColumn(name="exe_id", referencedColumnName="exe_id")
- */
- private $attempt;
- /**
- * @ORM\ManyToOne(targetEntity="CQuizQuestion")
- * @ORM\JoinColumn(name="question_id", referencedColumnName="iid")
- */
- private $question;
- /**
- * @return \Entity\CquizQuestion
- */
- public function getQuestion()
- {
- return $this->question;
- }
- /**
- * Get id
- *
- * @return integer
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * Set exeId
- *
- * @param integer $exeId
- * @return TrackEAttempt
- */
- public function setExeId($exeId)
- {
- $this->exeId = $exeId;
- return $this;
- }
- /**
- * Get exeId
- *
- * @return integer
- */
- public function getExeId()
- {
- return $this->exeId;
- }
- /**
- * Set userId
- *
- * @param integer $userId
- * @return TrackEAttempt
- */
- public function setUserId($userId)
- {
- $this->userId = $userId;
- return $this;
- }
- /**
- * Get userId
- *
- * @return integer
- */
- public function getUserId()
- {
- return $this->userId;
- }
- /**
- * Set questionId
- *
- * @param integer $questionId
- * @return TrackEAttempt
- */
- public function setQuestionId($questionId)
- {
- $this->questionId = $questionId;
- return $this;
- }
- /**
- * Get questionId
- *
- * @return integer
- */
- public function getQuestionId()
- {
- return $this->questionId;
- }
- /**
- * Set answer
- *
- * @param string $answer
- * @return TrackEAttempt
- */
- public function setAnswer($answer)
- {
- $this->answer = $answer;
- return $this;
- }
- /**
- * Get answer
- *
- * @return string
- */
- public function getAnswer()
- {
- return $this->answer;
- }
- /**
- * Set teacherComment
- *
- * @param string $teacherComment
- * @return TrackEAttempt
- */
- public function setTeacherComment($teacherComment)
- {
- $this->teacherComment = $teacherComment;
- return $this;
- }
- /**
- * Get teacherComment
- *
- * @return string
- */
- public function getTeacherComment()
- {
- return $this->teacherComment;
- }
- /**
- * Set marks
- *
- * @param float $marks
- * @return TrackEAttempt
- */
- public function setMarks($marks)
- {
- $this->marks = $marks;
- return $this;
- }
- /**
- * Get marks
- *
- * @return float
- */
- public function getMarks()
- {
- return $this->marks;
- }
- /**
- * Set position
- *
- * @param integer $position
- * @return TrackEAttempt
- */
- public function setPosition($position)
- {
- $this->position = $position;
- return $this;
- }
- /**
- * Get position
- *
- * @return integer
- */
- public function getPosition()
- {
- return $this->position;
- }
- /**
- * Set tms
- *
- * @param \DateTime $tms
- * @return TrackEAttempt
- */
- public function setTms($tms)
- {
- $this->tms = $tms;
- return $this;
- }
- /**
- * Get tms
- *
- * @return \DateTime
- */
- public function getTms()
- {
- return $this->tms;
- }
- /**
- * Set sessionId
- *
- * @param integer $sessionId
- * @return TrackEAttempt
- */
- public function setSessionId($sessionId)
- {
- $this->sessionId = $sessionId;
- return $this;
- }
- /**
- * Get sessionId
- *
- * @return integer
- */
- public function getSessionId()
- {
- return $this->sessionId;
- }
- /**
- * Set cId
- *
- * @param integer $cId
- * @return TrackEAttempt
- */
- public function setCId($cId)
- {
- $this->cId = $cId;
- return $this;
- }
- /**
- * Get cId
- *
- * @return integer
- */
- public function getCId()
- {
- return $this->cId;
- }
- /**
- * Set filename
- *
- * @param string $filename
- * @return TrackEAttempt
- */
- public function setFilename($filename)
- {
- $this->filename = $filename;
- return $this;
- }
- /**
- * Get filename
- *
- * @return string
- */
- public function getFilename()
- {
- return $this->filename;
- }
- }
|