src/Entity/Comercio/Cuenta.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Comercio;
  3. use App\Entity\Catalogos\EstadoCuenta;
  4. use App\Entity\Seguridades\Usuario;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * Cuenta
  8.  *
  9.  * @ORM\Table(name="comercio.cuenta", indexes={@ORM\Index(name="IDX_D6FFCB1EFCF8192D", columns={"id_usuario"})})
  10.  * @ORM\Entity
  11.  */
  12. class Cuenta
  13. {
  14.     /**
  15.      * @var int
  16.      *
  17.      * @ORM\Column(name="id", type="integer", nullable=false)
  18.      * @ORM\Id
  19.      * @ORM\GeneratedValue(strategy="SEQUENCE")
  20.      * @ORM\SequenceGenerator(sequenceName="comercio.cuenta_id_seq", allocationSize=1, initialValue=1)
  21.      */
  22.     private $id;
  23.     /**
  24.      * @var string|null
  25.      *
  26.      * @ORM\Column(name="codigo_cuenta", type="string", length=100, nullable=true)
  27.      */
  28.     private $codigoCuenta;
  29.     /**
  30.      * @var \DateTime
  31.      *
  32.      * @ORM\Column(name="fecha_hora_apertura", type="datetime", nullable=false)
  33.      */
  34.     private $fechaHoraApertura;
  35.     /**
  36.      * @var \DateTime
  37.      *
  38.      * @ORM\Column(name="fecha_hora_cierre", type="datetime", nullable=false)
  39.      */
  40.     private $fechaHoraCierre;
  41.     /**
  42.      * @var bool|null
  43.      *
  44.      * @ORM\Column(name="activa", type="boolean", nullable=true)
  45.      */
  46.     private $activa;
  47.     /**
  48.      * @var int|null
  49.      *
  50.      * @ORM\Column(name="numero_mesa", type="integer", nullable=true)
  51.      */
  52.     private $numeroMesa;
  53.     /**
  54.      * @var int
  55.      *
  56.      * @ORM\Column(name="id_usuario_modificacion", type="integer", nullable=false)
  57.      */
  58.     private $idUsuarioModificacion;
  59.     /**
  60.      * @var \DateTime
  61.      *
  62.      * @ORM\Column(name="fecha_modificacion", type="datetime", nullable=false)
  63.      */
  64.     private $fechaModificacion;
  65.     /**
  66.      * @var string
  67.      *
  68.      * @ORM\Column(name="ip_modificacion", type="string", length=50, nullable=false)
  69.      */
  70.     private $ipModificacion;
  71.     /**
  72.      * @var \App\Entity\Seguridades\Usuario
  73.      *
  74.      * @ORM\ManyToOne(targetEntity="App\Entity\Seguridades\Usuario")
  75.      * @ORM\JoinColumns({
  76.      *   @ORM\JoinColumn(name="id_usuario", referencedColumnName="id")
  77.      * })
  78.      */
  79.     private $idUsuario;
  80.     /**
  81.      * @var \App\Entity\Catalogos\EstadoCuenta
  82.      *
  83.      * @ORM\ManyToOne(targetEntity="App\Entity\Catalogos\EstadoCuenta")
  84.      * @ORM\JoinColumns({
  85.      *   @ORM\JoinColumn(name="id_estado_cuenta", referencedColumnName="id")
  86.      * })
  87.      */
  88.     private $idEstadoCuenta;
  89.     public function getId(): ?int
  90.     {
  91.         return $this->id;
  92.     }
  93.     public function getCodigoCuenta(): ?string
  94.     {
  95.         return $this->codigoCuenta;
  96.     }
  97.     public function setCodigoCuenta(?string $codigoCuenta): self
  98.     {
  99.         $this->codigoCuenta $codigoCuenta;
  100.         return $this;
  101.     }
  102.     public function getFechaHoraApertura(): ?\DateTimeInterface
  103.     {
  104.         return $this->fechaHoraApertura;
  105.     }
  106.     public function getFechaHoraAperturaString(): ? string
  107.     {
  108.         return $this->fechaHoraApertura $this->fechaHoraApertura->format('Y-m-d H:i:s'):'';
  109.     }
  110.     public function setFechaHoraApertura(\DateTimeInterface $fechaHoraApertura): self
  111.     {
  112.         $this->fechaHoraApertura $fechaHoraApertura;
  113.         return $this;
  114.     }
  115.     public function getFechaHoraCierre(): ?\DateTimeInterface
  116.     {
  117.         return $this->fechaHoraCierre;
  118.     }
  119.     public function getFechaHoraCierreString(): ? string
  120.     {
  121.         return $this->fechaHoraCierre $this->fechaHoraCierre->format('Y-m-d H:i:s'):'';
  122.     }
  123.     public function setFechaHoraCierre(\DateTimeInterface $fechaHoraCierre): self
  124.     {
  125.         $this->fechaHoraCierre $fechaHoraCierre;
  126.         return $this;
  127.     }
  128.     public function getActiva(): ?bool
  129.     {
  130.         return $this->activa;
  131.     }
  132.     public function setActiva(?bool $activa): self
  133.     {
  134.         $this->activa $activa;
  135.         return $this;
  136.     }
  137.     public function getNumeroMesa(): ?int
  138.     {
  139.         return $this->numeroMesa;
  140.     }
  141.     public function setNumeroMesa(?int $numeroMesa): self
  142.     {
  143.         $this->numeroMesa $numeroMesa;
  144.         return $this;
  145.     }
  146.     public function getIdUsuarioModificacion(): ?int
  147.     {
  148.         return $this->idUsuarioModificacion;
  149.     }
  150.     public function setIdUsuarioModificacion(int $idUsuarioModificacion): self
  151.     {
  152.         $this->idUsuarioModificacion $idUsuarioModificacion;
  153.         return $this;
  154.     }
  155.     public function getFechaModificacion(): ?\DateTimeInterface
  156.     {
  157.         return $this->fechaModificacion;
  158.     }
  159.     public function setFechaModificacion(\DateTimeInterface $fechaModificacion): self
  160.     {
  161.         $this->fechaModificacion $fechaModificacion;
  162.         return $this;
  163.     }
  164.     public function getIpModificacion(): ?string
  165.     {
  166.         return $this->ipModificacion;
  167.     }
  168.     public function setIpModificacion(string $ipModificacion): self
  169.     {
  170.         $this->ipModificacion $ipModificacion;
  171.         return $this;
  172.     }
  173.     public function getIdUsuario(): ?Usuario
  174.     {
  175.         return $this->idUsuario;
  176.     }
  177.     public function setIdUsuario(?Usuario $idUsuario): self
  178.     {
  179.         $this->idUsuario $idUsuario;
  180.         return $this;
  181.     }
  182.     public function getIdEstadoCuenta(): ?EstadoCuenta
  183.     {
  184.         return $this->idEstadoCuenta;
  185.     }
  186.     public function setIdEstadoCuenta(?EstadoCuenta $idEstadoCuenta): self
  187.     {
  188.         $this->idEstadoCuenta $idEstadoCuenta;
  189.         return $this;
  190.     }
  191. }