<?php
namespace CoreBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* QuizMathproblem
*
* @ORM\Table(name="quiz_mathproblem")
* @ORM\Entity()
*/
class RelationQuizMathproblem
{
/**
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity="Quiz")
* @ORM\JoinColumn(nullable=false)
*/
private $quiz;
/**
* @ORM\ManyToOne(targetEntity="Mathproblem")
* @ORM\JoinColumn(nullable=false)
*/
private $mathproblem;
/**
* @ORM\Column(type="boolean", options={"default": true})
*/
private $enabled;
/**
* @return mixed
*/
public function getQuiz()
{
return $this->quiz;
}
/**
* @param mixed $quiz
*/
public function setQuiz($quiz): void
{
$this->quiz = $quiz;
}
/**
* @return mixed
*/
public function getMathproblem()
{
return $this->mathproblem;
}
/**
* @param mixed $mathproblem
*/
public function setMathproblem($mathproblem): void
{
$this->mathproblem = $mathproblem;
}
/**
* @return mixed
*/
public function getEnabled()
{
return $this->enabled;
}
/**
* @param mixed $enabled
*/
public function setEnabled($enabled): void
{
$this->enabled = $enabled;
}
public function __toString()
{
return 'RelationQuizMathproblem';
}
}