<?php
namespace App\Entity;
use App\Repository\MantencionEstadoRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: MantencionEstadoRepository::class)]
class MantencionEstado
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private ?int $id = null;
#[ORM\Column(type: 'string', length: 255)]
private ?string $nombre = null;
#[ORM\Column(type: 'boolean')]
private ?bool $esInicial = null;
#[ORM\Column(type: 'boolean')]
private ?bool $esFinal = null;
public function __toString(): string
{
return $this->nombre ?? '';
}
public function getId(): ?int
{
return $this->id;
}
public function getNombre(): ?string
{
return $this->nombre;
}
public function setNombre(string $nombre): self
{
$this->nombre = $nombre;
return $this;
}
public function getEsInicial(): ?bool
{
return $this->esInicial;
}
public function setEsInicial(bool $esInicial): self
{
$this->esInicial = $esInicial;
return $this;
}
public function getEsFinal(): ?bool
{
return $this->esFinal;
}
public function setEsFinal(bool $esFinal): self
{
$this->esFinal = $esFinal;
return $this;
}
}