<?phpnamespace CoreBundle\Entity;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Table("pretest") * @ORM\Entity */class Pretest{ /** * @var int * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") */ private $id; /** * @var int * * @ORM\Column(name="time_limit", type="integer") */ private $timeLimit; public function __construct() {// $this->mathproblems = new ArrayCollection(); } /** * Get id. * * @return int */ public function getId() { return $this->id; }//// /**// * Set topic.// *// * @param int $topic// *// * @return Pretest// */// public function setTopic($topic)// {// $this->topic = $topic;//// return $this;// }//// /**// * Get topic.// *// * @return int// */// public function getTopic()// {// return $this->topic;// } /** * Set timeLimit. * * @param int $timeLimit * * @return Pretest */ public function setTimeLimit($timeLimit) { $this->timeLimit = $timeLimit; return $this; } /** * Get timeLimit. * * @return int */ public function getTimeLimit() { return $this->timeLimit; }//// /**// * Set online.// *// * @param bool $online// *// * @return Pretest// */// public function setOnline($online)// {// $this->online = $online;//// return $this;// }//// /**// * Get online.// *// * @return bool// */// public function getOnline()// {// return $this->online;// }//// /**// * @return PretestMathproblem[]// */// public function getMathproblems()// {// return $this->mathproblems;// }//// /**// * @param PretestMathproblem $pretestMathproblem// *// * @return Pretest// */// public function addAnswer(PretestMathproblem $pretestMathproblem)// {// $pretestMathproblem->setPretest($this);// $this->mathproblems->add($pretestMathproblem);//// return $this;// }//// /**// * @param PretestMathproblem $pretestMathproblem// *// * @return bool// */// public function removeAnswer(PretestMathproblem $pretestMathproblem)// {// $pretestMathproblem->setPretest(null);//// return $this->mathproblems->removeElement($pretestMathproblem);// }}