<?php

class WpProQuiz_Model_Statistic extends WpProQuiz_Model_Model
{

    protected $_statisticRefId = 0;
    protected $_questionId = 0;
    protected $_correctCount = 0;
    protected $_incorrectCount = 0;
    protected $_hintCount = 0;
    protected $_points = 0;
    protected $_negative_points = 0;
    protected $_questionTime = 0;
    protected $_answerData = null;
    protected $_solvedCount = 0;

    public function setStatisticRefId($_statisticRefId)
    {
        $this->_statisticRefId = (int)$_statisticRefId;

        return $this;
    }

    public function getStatisticRefId()
    {
        return $this->_statisticRefId;
    }

    public function setQuestionId($_questionId)
    {
        $this->_questionId = (int)$_questionId;

        return $this;
    }

    public function getQuestionId()
    {
        return $this->_questionId;
    }

    public function setCorrectCount($_correctCount)
    {
        $this->_correctCount = (int)$_correctCount;

        return $this;
    }

    public function getCorrectCount()
    {
        return $this->_correctCount;
    }

    public function setIncorrectCount($_incorrectCount)
    {
        $this->_incorrectCount = (int)$_incorrectCount;

        return $this;
    }

    public function getIncorrectCount()
    {
        return $this->_incorrectCount;
    }

    public function setHintCount($_hintCount)
    {
        $this->_hintCount = (int)$_hintCount;

        return $this;
    }

    public function getHintCount()
    {
        return $this->_hintCount;
    }

    public function setPoints($_points)
    {
        $this->_points = (float)$_points;

        return $this;
    }

    public function getPoints()
    {
        return $this->_points;
    }
	
	//custom code: "setNegativePoints" and "getNegativePoints" function.
	public function setNegativePoints($_negative_points)
    {
        $this->_negative_points = (float)$_negative_points;

        return $this;
    }

    public function getNegativePoints()
    {
        return $this->_negative_points;
    }

    public function setQuestionTime($_questionTime)
    {
        $this->_questionTime = (int)$_questionTime;

        return $this;
    }

    public function getQuestionTime()
    {
        return $this->_questionTime;
    }

    public function setAnswerData($_answerData)
    {
        $this->_answerData = $_answerData;

        return $this;
    }

    public function getAnswerData()
    {
        return $this->_answerData;
    }

    public function setSolvedCount($_solvedCount)
    {
        $this->_solvedCount = (int)$_solvedCount;

        return $this;
    }

    public function getSolvedCount()
    {
        return $this->_solvedCount;
    }
}
