src/Entity/Fidelizacion/CategoriaCliente.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Fidelizacion;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * CategoriaCliente
  6.  *
  7.  * @ORM\Table(name="fidelizacion.categoria_cliente")
  8.  * @ORM\Entity
  9.  */
  10. class CategoriaCliente
  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="fidelizacion.categoria_cliente_id_seq", allocationSize=1, initialValue=1)
  19.      */
  20.     private $id;
  21.     /**
  22.      * @var string
  23.      *
  24.      * @ORM\Column(name="nombre", type="string", length=20, 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.     /**
  34.      * @var int|null
  35.      *
  36.      * @ORM\Column(name="nivel", type="integer", nullable=true)
  37.      */
  38.     private $nivel;
  39.     /**
  40.      * @var int
  41.      *
  42.      * @ORM\Column(name="id_usuario_modificacion", type="integer", nullable=false)
  43.      */
  44.     private $idUsuarioModificacion;
  45.     /**
  46.      * @var \DateTime
  47.      *
  48.      * @ORM\Column(name="fecha_modificacion", type="datetime", nullable=false)
  49.      */
  50.     private $fechaModificacion;
  51.     /**
  52.      * @var string
  53.      *
  54.      * @ORM\Column(name="ip_modificacion", type="string", length=50, nullable=false)
  55.      */
  56.     private $ipModificacion;
  57.      /**
  58.      * @var string
  59.      *
  60.      * @ORM\Column(name="base", type="decimal", precision=10, scale=4, nullable=false)
  61.      */
  62.     private $base;
  63.     public function getId(): ?int
  64.     {
  65.         return $this->id;
  66.     }
  67.     public function getNombre(): ?string
  68.     {
  69.         return $this->nombre;
  70.     }
  71.     public function setNombre(string $nombre): self
  72.     {
  73.         $this->nombre $nombre;
  74.         return $this;
  75.     }
  76.     public function getActivo(): ?bool
  77.     {
  78.         return $this->activo;
  79.     }
  80.     public function setActivo(bool $activo): self
  81.     {
  82.         $this->activo $activo;
  83.         return $this;
  84.     }
  85.     public function getNivel(): ?int
  86.     {
  87.         return $this->nivel;
  88.     }
  89.     public function setNivel(?int $nivel): self
  90.     {
  91.         $this->nivel $nivel;
  92.         return $this;
  93.     }
  94.     public function getIdUsuarioModificacion(): ?int
  95.     {
  96.         return $this->idUsuarioModificacion;
  97.     }
  98.     public function setIdUsuarioModificacion(int $idUsuarioModificacion): self
  99.     {
  100.         $this->idUsuarioModificacion $idUsuarioModificacion;
  101.         return $this;
  102.     }
  103.     public function getFechaModificacion(): ?\DateTimeInterface
  104.     {
  105.         return $this->fechaModificacion;
  106.     }
  107.     public function setFechaModificacion(\DateTimeInterface $fechaModificacion): self
  108.     {
  109.         $this->fechaModificacion $fechaModificacion;
  110.         return $this;
  111.     }
  112.     public function getIpModificacion(): ?string
  113.     {
  114.         return $this->ipModificacion;
  115.     }
  116.     public function setIpModificacion(string $ipModificacion): self
  117.     {
  118.         $this->ipModificacion $ipModificacion;
  119.         return $this;
  120.     }
  121.     public function __toString()
  122.     {
  123.         return $this->nombre;
  124.     }
  125.     public function getBase(): ?string
  126.     {
  127.         return $this->base;
  128.     }
  129.     public function setBase(string $base): self
  130.     {
  131.         $this->base $base;
  132.         return $this;
  133.     }
  134. }