<?phpnamespace App\Entity\Gos\Uniqskills;use App\Entity\Gos\User;use App\Repository\Gos\Uniqskills\UserVideoNotesRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=UserVideoNotesRepository::class) * @ORM\HasLifecycleCallbacks() */class UserVideoNotes{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="integer") */ private $time; /** * @ORM\Column(type="text") */ private $note; /** * @ORM\Column(type="datetime") */ private $createdAt; /** * @ORM\Column(type="datetime", nullable=true) */ private $updatedAt; /** * @ORM\ManyToOne(targetEntity=User::class, inversedBy="userVideoNotes") */ private $user; /** * @ORM\ManyToOne(targetEntity=Lesson::class, inversedBy="userVideoNotes") */ private $lesson; /** @ORM\PrePersist() */ public function prePersist() { $this->createdAt = new \DateTime(); } /** @ORM\PreUpdate() */ public function preUpdate() { $this->updatedAt = new \DateTime(); } public function getId(): ?int { return $this->id; } public function getTime(): ?int { return $this->time; } public function setTime(int $time): self { $this->time = $time; return $this; } public function getNote(): ?string { return $this->note; } public function setNote(string $note): self { $this->note = $note; 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 getLesson(): ?Lesson { return $this->lesson; } public function setLesson(?Lesson $lesson): self { $this->lesson = $lesson; return $this; }}