src/Entity/Catalogos/EstadoCuenta.php line 13

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