<?phpnamespace App\Entity;use App\Repository\TareaCursoRepository;use DateTimeInterface;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;use Symfony\Component\Validator\Constraints as Assert;#[ORM\Entity(repositoryClass: TareaCursoRepository::class)]class TareaCurso{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\ManyToOne(inversedBy: 'tareas')] #[ORM\JoinColumn(nullable: false)] private ?Curso $curso = null; #[Assert\NotBlank] #[ORM\Column(length: 255)] private ?string $nombre = null; #[ORM\Column(type: Types::TEXT, nullable: true)] private ?string $descripcion = null; #[ORM\Column] private ?bool $completada = false; #[ORM\Column(type: Types::DATE_MUTABLE, nullable: true)] private ?DateTimeInterface $fechaLimite = null; public function getId(): ?int { return $this->id; } public function getCurso(): ?Curso { return $this->curso; } public function setCurso(?Curso $curso): static { $this->curso = $curso; return $this; } public function getNombre(): ?string { return $this->nombre; } public function setNombre(?string $nombre): static { $this->nombre = $nombre; return $this; } public function getDescripcion(): ?string { return $this->descripcion; } public function setDescripcion(?string $descripcion): static { $this->descripcion = $descripcion; return $this; } public function isCompletada(): ?bool { return $this->completada; } public function setCompletada(bool $completada): static { $this->completada = $completada; return $this; } public function getFechaLimite(): ?DateTimeInterface { return $this->fechaLimite; } public function setFechaLimite(?DateTimeInterface $fechaLimite): static { $this->fechaLimite = $fechaLimite; return $this; }}