<?php
namespace App\Entity\Core;
use App\Entity\Core\Quiz\Quiz;
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\JoinColumn(nullable: false)]
#[ORM\ManyToOne(targetEntity: Quiz::class)]
private $quiz;
#[ORM\JoinColumn(nullable: false)]
#[ORM\ManyToOne(targetEntity: Mathproblem::class)]
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';
}
}