<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Vich\UploaderBundle\Mapping\Annotation as Vich;
/**
* @ORM\Entity(repositoryClass="App\Repository\ValoracionesRelojesStockRepository")
* @ORM\Table(name="valoraciones_relojes_stock", schema="perseo")
* @Vich\Uploadable
*/
class ValoracionesRelojesStock extends ValoracionesRelojes
{
/**
* @ORM\Column(type="float", nullable=true, name="precio_promocion")
*/
private $precioPromocion;
/**
* @ORM\Column(type="float", nullable=true, options={"default":"0.00"})
*/
protected $descuento;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Valoracion", inversedBy="valoracionesRelojesStocks")
* @ORM\JoinColumn(name="valoracion_id", referencedColumnName="id")
*/
protected $valoracion;
/**
* @ORM\ManyToOne(targetEntity=\App\Entity\Canal::class, inversedBy="valoracionesRelojesStocks")
* @ORM\JoinColumn(name="plataforma_promocion_id", referencedColumnName="id")
*/
private $plataformaPromocion;
public function __construct()
{
$this->reloj = new Reloj();
parent::__construct();
}
public function getDescuento(): ?float
{
return $this->descuento;
}
public function setDescuento(?float $descuento): self
{
$this->descuento = $descuento;
return $this;
}
public function getValoracion(): ?Valoracion
{
return $this->valoracion;
}
public function setValoracion(?Valoracion $valoracion): self
{
$this->valoracion = $valoracion;
return $this;
}
public function getPrecioPromocion(): ?float
{
return $this->precioPromocion;
}
public function setPrecioPromocion(?float $precioPromocion): static
{
$this->precioPromocion = $precioPromocion;
return $this;
}
public function getPlataformaPromocion(): ?Canal
{
return $this->plataformaPromocion;
}
public function setPlataformaPromocion(?Canal $plataformaPromocion): static
{
$this->plataformaPromocion = $plataformaPromocion;
return $this;
}
}