src/Entity/Catalogos/MedioPago.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Catalogos;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * MedioPago
  6.  *
  7.  * @ORM\Table(name="catalogos.medio_pago")
  8.  * @ORM\Entity
  9.  */
  10. class MedioPago
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="id", type="integer", nullable=false)
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="SEQUENCE")
  18.      * @ORM\SequenceGenerator(sequenceName="catalogos.medio_pago_id_seq", allocationSize=1, initialValue=1)
  19.      */
  20.     private $id;
  21.     /**
  22.      * @var string
  23.      *
  24.      * @ORM\Column(name="nombre", type="string", length=30, nullable=false)
  25.      */
  26.     private $nombre;
  27.     /**
  28.      * @var bool
  29.      *
  30.      * @ORM\Column(name="activo", type="boolean", nullable=false)
  31.      */
  32.     private $activo;
  33.     public function getId(): ?int
  34.     {
  35.         return $this->id;
  36.     }
  37.     public function getNombre(): ?string
  38.     {
  39.         return $this->nombre;
  40.     }
  41.     public function setNombre(string $nombre): self
  42.     {
  43.         $this->nombre $nombre;
  44.         return $this;
  45.     }
  46.     public function getActivo(): ?bool
  47.     {
  48.         return $this->activo;
  49.     }
  50.     public function setActivo(bool $activo): self
  51.     {
  52.         $this->activo $activo;
  53.         return $this;
  54.     }
  55.     public function __toString()
  56.     {
  57.         return $this->getNombre();
  58.     }
  59. }