src/Entity/MantencionTipoComunicacion.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\MantencionTipoComunicacionRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassMantencionTipoComunicacionRepository::class)]
  6. class MantencionTipoComunicacion
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private ?int $id null;
  12.     #[ORM\Column(type'string'length255)]
  13.     private ?string $nombre null;
  14.     public function __toString(): string
  15.     {
  16.         return $this->nombre ?? '';
  17.     }
  18.     public function getId(): ?int
  19.     {
  20.         return $this->id;
  21.     }
  22.     public function getNombre(): ?string
  23.     {
  24.         return $this->nombre;
  25.     }
  26.     public function setNombre(string $nombre): self
  27.     {
  28.         $this->nombre $nombre;
  29.         return $this;
  30.     }
  31. }