src/Entity/Alerta.php line 13
- <?php
- namespace App\Entity;
- use Doctrine\ORM\Mapping as ORM;
- /**
- * Alerta
- *
- * @ORM\Table(name="alerta")
- * @ORM\Entity(repositoryClass="App\Repository\AlertaRepository")
- */
- class Alerta
- {
- /**
- * @var integer
- *
- * @ORM\Column(name="id", type="integer")
- * @ORM\Id
- * @ORM\GeneratedValue(strategy="AUTO")
- */
- private $id;
- /**
- * @ORM\ManyToOne(targetEntity="User", inversedBy="alerts")
- * @ORM\JoinColumn(name="usuario", referencedColumnName="id")
- */
- private $usuario;
- /**
- * @var \DateTime
- *
- * @ORM\Column(name="fechaInicio", type="date")
- */
- private $fechaInicio;
- /**
- * @var \DateTime
- *
- * @ORM\Column(name="fechaFin", type="date", nullable=true)
- */
- private $fechaFin;
- /**
- * @ORM\ManyToOne(targetEntity="Divisa")
- * @ORM\JoinColumn(name="divisa", referencedColumnName="id")
- */
- private $divisa;
- /**
- * @ORM\ManyToOne(targetEntity="Oficina")
- * @ORM\JoinColumn(name="oficina", referencedColumnName="id")
- */
- private $oficina;
- /**
- * @var float
- *
- * @ORM\Column(name="precioMinimo", type="float", nullable=true)
- */
- private $precioMinimo;
- /**
- * @var float
- *
- * @ORM\Column(name="activo", type="boolean")
- */
- private $activo;
- /**
- * @var string
- *
- * @ORM\Column(name="frecuencia", type="string", length=5)
- */
- private $frecuencia;
- /**
- * @var boolean
- *
- * @ORM\Column(name="tipo", type="boolean")
- */
- private $tipo;
- // Si es 0 es compra y si es 1 es venta
- /**
- * Get id
- *
- * @return integer
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * Set usuario
- *
- * @param integer $usuario
- * @return Alerta
- */
- public function setUsuario($usuario)
- {
- $this->usuario = $usuario;
- return $this;
- }
- /**
- * Get usuario
- *
- * @return integer
- */
- public function getUsuario()
- {
- return $this->usuario;
- }
- /**
- * Set fechaInicio
- *
- * @param \DateTime $fechaInicio
- * @return Alerta
- */
- public function setFechaInicio($fechaInicio)
- {
- $this->fechaInicio = $fechaInicio;
- return $this;
- }
- /**
- * Get fechaInicio
- *
- * @return \DateTime
- */
- public function getFechaInicio()
- {
- return $this->fechaInicio;
- }
- /**
- * Set fechaFin
- *
- * @param \DateTime $fechaFin
- * @return Alerta
- */
- public function setFechaFin($fechaFin)
- {
- $this->fechaFin = $fechaFin;
- return $this;
- }
- /**
- * Get fechaFin
- *
- * @return \DateTime
- */
- public function getFechaFin()
- {
- return $this->fechaFin;
- }
- /**
- * Set divisa
- *
- * @param integer $divisa
- * @return Alerta
- */
- public function setDivisa($divisa)
- {
- $this->divisa = $divisa;
- return $this;
- }
- /**
- * Set oficina
- *
- * @param float $oficina
- * @return Alerta
- */
- public function setOficina($oficina)
- {
- $this->oficina = $oficina;
- return $this;
- }
- /**
- * Get oficina
- *
- * @return Alerta
- */
- public function getOficina()
- {
- return $this->oficina;
- }
- /**
- * Get divisa
- *
- * @return integer
- */
- public function getDivisa()
- {
- return $this->divisa;
- }
- /**
- * Set precioMinimo
- *
- * @param float $precioMinimo
- * @return Alerta
- */
- public function setPrecioMinimo($precioMinimo)
- {
- $this->precioMinimo = $precioMinimo;
- return $this;
- }
- /**
- * Get precioMinimo
- *
- * @return float
- */
- public function getPrecioMinimo()
- {
- return $this->precioMinimo;
- }
- /**
- * Set activo
- *
- * @param boolean $activo
- * @return Alerta
- */
- public function setActivo($activo)
- {
- $this->activo = $activo;
- return $this;
- }
- /**
- * Get activo
- *
- * @return float
- */
- public function getActivo()
- {
- return $this->activo;
- }
- /**
- * Set frecuencia
- *
- * @param string $activo
- * @return Alerta
- */
- public function setFrecuencia($frecuencia)
- {
- $this->frecuencia = $frecuencia;
- return $this;
- }
- /**
- * Get frecuencia
- *
- * @return string
- */
- public function getFrecuencia()
- {
- return $this->frecuencia;
- }
- /**
- * Set tipo
- *
- * @param boolean $tipo
- * @return Carro
- */
- public function setTipo($tipo)
- {
- $this->tipo = $tipo;
- return $this;
- }
- /**
- * Get tipo
- *
- * @return boolean
- */
- public function getTipo()
- {
- return $this->tipo;
- }
- }