<?php
namespace App\Entity\Fidelizacion;
use Doctrine\ORM\Mapping as ORM;
/**
* CategoriaCliente
*
* @ORM\Table(name="fidelizacion.categoria_cliente")
* @ORM\Entity
*/
class CategoriaCliente
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="SEQUENCE")
* @ORM\SequenceGenerator(sequenceName="fidelizacion.categoria_cliente_id_seq", allocationSize=1, initialValue=1)
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="nombre", type="string", length=20, nullable=false)
*/
private $nombre;
/**
* @var bool
*
* @ORM\Column(name="activo", type="boolean", nullable=false)
*/
private $activo;
/**
* @var int|null
*
* @ORM\Column(name="nivel", type="integer", nullable=true)
*/
private $nivel;
/**
* @var int
*
* @ORM\Column(name="id_usuario_modificacion", type="integer", nullable=false)
*/
private $idUsuarioModificacion;
/**
* @var \DateTime
*
* @ORM\Column(name="fecha_modificacion", type="datetime", nullable=false)
*/
private $fechaModificacion;
/**
* @var string
*
* @ORM\Column(name="ip_modificacion", type="string", length=50, nullable=false)
*/
private $ipModificacion;
/**
* @var string
*
* @ORM\Column(name="base", type="decimal", precision=10, scale=4, nullable=false)
*/
private $base;
public function getId(): ?int
{
return $this->id;
}
public function getNombre(): ?string
{
return $this->nombre;
}
public function setNombre(string $nombre): self
{
$this->nombre = $nombre;
return $this;
}
public function getActivo(): ?bool
{
return $this->activo;
}
public function setActivo(bool $activo): self
{
$this->activo = $activo;
return $this;
}
public function getNivel(): ?int
{
return $this->nivel;
}
public function setNivel(?int $nivel): self
{
$this->nivel = $nivel;
return $this;
}
public function getIdUsuarioModificacion(): ?int
{
return $this->idUsuarioModificacion;
}
public function setIdUsuarioModificacion(int $idUsuarioModificacion): self
{
$this->idUsuarioModificacion = $idUsuarioModificacion;
return $this;
}
public function getFechaModificacion(): ?\DateTimeInterface
{
return $this->fechaModificacion;
}
public function setFechaModificacion(\DateTimeInterface $fechaModificacion): self
{
$this->fechaModificacion = $fechaModificacion;
return $this;
}
public function getIpModificacion(): ?string
{
return $this->ipModificacion;
}
public function setIpModificacion(string $ipModificacion): self
{
$this->ipModificacion = $ipModificacion;
return $this;
}
public function __toString()
{
return $this->nombre;
}
public function getBase(): ?string
{
return $this->base;
}
public function setBase(string $base): self
{
$this->base = $base;
return $this;
}
}