src/Entity/Comercio/Reserva.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Comercio;
  3. use App\Entity\Infraestructura\Espacios;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * Reserva
  7.  *
  8.  * @ORM\Table(name="comercio.reserva")
  9.  * @ORM\Entity
  10.  */
  11. class Reserva
  12. {
  13.     /**
  14.      * @var int
  15.      *
  16.      * @ORM\Column(name="id", type="integer", nullable=false)
  17.      * @ORM\Id
  18.      * @ORM\GeneratedValue(strategy="SEQUENCE")
  19.      * @ORM\SequenceGenerator(sequenceName="comercio.reserva_id_seq", allocationSize=1, initialValue=1)
  20.      */
  21.     private $id;
  22.     /**
  23.      * @var \DateTime
  24.      *
  25.      * @ORM\Column(name="fecha_reserva", type="date", nullable=false)
  26.      */
  27.     private $fechaReserva;
  28.     /**
  29.      * @var \DateTime
  30.      *
  31.      * @ORM\Column(name="hora_reserva", type="time", nullable=false)
  32.      */
  33.     private $horaReserva;
  34.     /**
  35.      * @var string
  36.      *
  37.      * @ORM\Column(name="estado", type="string", length=50, nullable=false, options={"comment"="Reservado
  38. Atendida"})
  39.      */
  40.     private $estado;
  41.     /**
  42.      * @var int
  43.      *
  44.      * @ORM\Column(name="numero_personas", type="smallint", nullable=false)
  45.      */
  46.     private $numeroPersonas;
  47.     /**
  48.      * @var int
  49.      *
  50.      * @ORM\Column(name="porcentaje_abono", type="smallint", nullable=false)
  51.      */
  52.     private $porcentajeAbono;
  53.     /**
  54.      * @var string|null
  55.      *
  56.      * @ORM\Column(name="observaciones", type="text", nullable=true)
  57.      */
  58.     private $observaciones;
  59.     /**
  60.      * @var int
  61.      *
  62.      * @ORM\Column(name="id_usuario_modificacion", type="integer", nullable=false)
  63.      */
  64.     private $idUsuarioModificacion;
  65.     /**
  66.      * @var \DateTime
  67.      *
  68.      * @ORM\Column(name="fecha_modificacion", type="datetime", nullable=false)
  69.      */
  70.     private $fechaModificacion;
  71.     /**
  72.      * @var string
  73.      *
  74.      * @ORM\Column(name="ip_modificacion", type="string", length=50, nullable=false)
  75.      */
  76.     private $ipModificacion;
  77.     /**
  78.      * @var \Cuenta
  79.      *
  80.      * @ORM\ManyToOne(targetEntity="Cuenta")
  81.      * @ORM\JoinColumns({
  82.      *   @ORM\JoinColumn(name="id_cuenta", referencedColumnName="id")
  83.      * })
  84.      */
  85.     private $idCuenta;
  86.     /**
  87.      * @var \App\Entity\Infraestructura\Espacios
  88.      *
  89.      * @ORM\ManyToOne(targetEntity="App\Entity\Infraestructura\Espacios")
  90.      * @ORM\JoinColumns({
  91.      *   @ORM\JoinColumn(name="id_espacios", referencedColumnName="id")
  92.      * })
  93.      */
  94.     private $idEspacios;
  95.     public function getId(): ?int
  96.     {
  97.         return $this->id;
  98.     }
  99.     public function getFechaReserva(): ?\DateTimeInterface
  100.     {
  101.         return $this->fechaReserva;
  102.     }
  103.     public function getFechaReservaString(): ?string
  104.     {
  105.         return $this->fechaReserva $this->fechaReserva->format('Y-m-d') : '';
  106.     }
  107.     public function setFechaReserva(\DateTimeInterface $fechaReserva): self
  108.     {
  109.         $this->fechaReserva $fechaReserva;
  110.         return $this;
  111.     }
  112.     public function getHoraReserva(): ?\DateTimeInterface
  113.     {
  114.         return $this->horaReserva;
  115.     }
  116.     public function getHoraReservaString(): ?string
  117.     {
  118.         return $this->horaReserva $this->horaReserva->format('H:i') : '';
  119.     }
  120.     public function setHoraReserva(\DateTimeInterface $horaReserva): self
  121.     {
  122.         $this->horaReserva $horaReserva;
  123.         return $this;
  124.     }
  125.     public function getEstado(): ?string
  126.     {
  127.         return $this->estado;
  128.     }
  129.     public function setEstado(string $estado): self
  130.     {
  131.         $this->estado $estado;
  132.         return $this;
  133.     }
  134.     public function getNumeroPersonas(): ?int
  135.     {
  136.         return $this->numeroPersonas;
  137.     }
  138.     public function setNumeroPersonas(int $numeroPersonas): self
  139.     {
  140.         $this->numeroPersonas $numeroPersonas;
  141.         return $this;
  142.     }
  143.     public function getPorcentajeAbono(): ?int
  144.     {
  145.         return $this->porcentajeAbono;
  146.     }
  147.     public function setPorcentajeAbono(int $porcentajeAbono): self
  148.     {
  149.         $this->porcentajeAbono $porcentajeAbono;
  150.         return $this;
  151.     }
  152.     public function getObservaciones(): ?string
  153.     {
  154.         return $this->observaciones;
  155.     }
  156.     public function setObservaciones(?string $observaciones): self
  157.     {
  158.         $this->observaciones $observaciones;
  159.         return $this;
  160.     }
  161.     public function getIdUsuarioModificacion(): ?int
  162.     {
  163.         return $this->idUsuarioModificacion;
  164.     }
  165.     public function setIdUsuarioModificacion(int $idUsuarioModificacion): self
  166.     {
  167.         $this->idUsuarioModificacion $idUsuarioModificacion;
  168.         return $this;
  169.     }
  170.     public function getFechaModificacion(): ?\DateTimeInterface
  171.     {
  172.         return $this->fechaModificacion;
  173.     }
  174.     public function setFechaModificacion(\DateTimeInterface $fechaModificacion): self
  175.     {
  176.         $this->fechaModificacion $fechaModificacion;
  177.         return $this;
  178.     }
  179.     public function getIpModificacion(): ?string
  180.     {
  181.         return $this->ipModificacion;
  182.     }
  183.     public function setIpModificacion(string $ipModificacion): self
  184.     {
  185.         $this->ipModificacion $ipModificacion;
  186.         return $this;
  187.     }
  188.     public function getIdCuenta(): ?Cuenta
  189.     {
  190.         return $this->idCuenta;
  191.     }
  192.     public function setIdCuenta(?Cuenta $idCuenta): self
  193.     {
  194.         $this->idCuenta $idCuenta;
  195.         return $this;
  196.     }
  197.     public function getIdEspacios(): ?Espacios
  198.     {
  199.         return $this->idEspacios;
  200.     }
  201.     public function setIdEspacios(?Espacios $idEspacios): self
  202.     {
  203.         $this->idEspacios $idEspacios;
  204.         return $this;
  205.     }
  206. }