src/Entity/Mantenimiento/SolicitantePedidoReparacion.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Mantenimiento;
  3. use App\Repository\Mantenimiento\SolicitantePedidoReparacionRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=SolicitantePedidoReparacionRepository::class)
  7. * @ORM\Table(name="mant_solicitante_pedido_reparacion")
  8.  */
  9. class SolicitantePedidoReparacion
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="string", length=255)
  19.      */
  20.     private $nombre;
  21.     /**
  22.      * @ORM\Column(type="boolean")
  23.      */
  24.     private $activo true;
  25.     public function __toString()
  26.     {
  27.         return $this->nombre;
  28.     }
  29.     public function isActivo(): ?bool
  30.     {
  31.         return $this->activo;
  32.     }
  33.     public function setActivo(bool $activo): self
  34.     {
  35.         $this->activo $activo;
  36.         return $this;
  37.     }
  38.     public function getId(): ?int
  39.     {
  40.         return $this->id;
  41.     }
  42.     public function getNombre(): ?string
  43.     {
  44.         return $this->nombre;
  45.     }
  46.     public function setNombre(string $nombre): self
  47.     {
  48.         $this->nombre $nombre;
  49.         return $this;
  50.     }
  51. }