<?phpnamespace App\Entity\Gos\Uniqskills;use App\Entity\Gos\User;use Doctrine\ORM\Mapping as ORM;use Gedmo\Mapping\Annotation as Gedmo;/** * @ORM\Table() * @ORM\Entity(repositoryClass="App\Repository\Gos\Uniqskills\UserTestRepository") * @ORM\HasLifecycleCallbacks */class UserTest{ /** * @var integer * * @ORM\Column(type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") */ private $id; /** * @var integer * @ORM\Column(type="integer") */ private $points; /** * @var integer * @ORM\Column(type="integer") */ private $educationPoints; /** * @var integer * @ORM\Column(type="integer") */ private $goodAnswers; /** * @var integer * @ORM\Column(type="integer") */ private $wrongAnswers; /** * @var bool * @ORM\Column(type="boolean") */ private $isPassed; /** * @var bool * @ORM\Column(type="boolean") */ private $isChecked; /** * @var integer * @ORM\Column(type="integer") */ private $sumCompleted; /** * @var \DateTime * * @ORM\Column(type="datetime", nullable=true) */ private $createdAt; /** * @var \DateTime * * @ORM\Column(type="datetime", nullable=true) */ private $updatedAt; /** * @ORM\ManyToOne(targetEntity="App\Entity\Gos\User", inversedBy="userTest") * @ORM\JoinColumn() */ private $user; /** * @ORM\ManyToOne(targetEntity="Test", inversedBy="userTest") * @ORM\JoinColumn(name="test_id", referencedColumnName="id", onDelete="cascade") */ private $test; /** @ORM\PrePersist() */ public function prePersist() { $this->createdAt = new \DateTime(); } /** @ORM\PreUpdate() */ public function preUpdate() { $this->updatedAt = new \DateTime(); } public function __toString() { return (string) $this->id; } public function __clone() { $this->id = null; $this->updatedAt = null; } public function getId(): ?int { return $this->id; } public function getPoints(): ?int { return $this->points; } public function setPoints(int $points): self { $this->points = $points; return $this; } public function getEducationPoints(): ?int { return $this->educationPoints; } public function setEducationPoints(int $educationPoints): self { $this->educationPoints = $educationPoints; return $this; } public function getGoodAnswers(): ?int { return $this->goodAnswers; } public function setGoodAnswers(int $goodAnswers): self { $this->goodAnswers = $goodAnswers; return $this; } public function getWrongAnswers(): ?int { return $this->wrongAnswers; } public function setWrongAnswers(int $wrongAnswers): self { $this->wrongAnswers = $wrongAnswers; return $this; } public function getIsPassed(): ?bool { return $this->isPassed; } public function setIsPassed(bool $isPassed): self { $this->isPassed = $isPassed; return $this; } public function getIsChecked(): ?bool { return $this->isChecked; } public function setIsChecked(bool $isChecked): self { $this->isChecked = $isChecked; return $this; } public function getSumCompleted(): ?int { return $this->sumCompleted; } public function setSumCompleted(int $sumCompleted): self { $this->sumCompleted = $sumCompleted; return $this; } public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } public function setCreatedAt(?\DateTimeInterface $createdAt): self { $this->createdAt = $createdAt; return $this; } public function getUpdatedAt(): ?\DateTimeInterface { return $this->updatedAt; } public function setUpdatedAt(?\DateTimeInterface $updatedAt): self { $this->updatedAt = $updatedAt; return $this; } public function getUser(): ?User { return $this->user; } public function setUser(?User $user): self { $this->user = $user; return $this; } public function getTest(): ?Test { return $this->test; } public function setTest(?Test $test): self { $this->test = $test; return $this; } /* ****************************** GETTERS & SETTERS ****************************** */}