<?php
namespace App\Entity;
use App\Repository\ParTipoEntrenamientoRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: ParTipoEntrenamientoRepository::class)]
class ParTipoEntrenamiento
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 100)]
private ?string $nombre = null;
#[ORM\ManyToOne(inversedBy: 'idTipoEntrenamiento')]
private ?ParEstado $estadoId = null;
public function getId(): ?int
{
return $this->id;
}
public function getNombre(): ?string
{
return $this->nombre;
}
public function setNombre(string $nombre): static
{
$this->nombre = $nombre;
return $this;
}
public function getEstadoId(): ?ParEstado
{
return $this->estadoId;
}
public function setEstadoId(?ParEstado $estadoId): static
{
$this->estadoId = $estadoId;
return $this;
}
}