src/Entity/ValoracionesRelojesStock.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Vich\UploaderBundle\Mapping\Annotation as Vich;
  5. /**
  6.  * @ORM\Entity(repositoryClass="App\Repository\ValoracionesRelojesStockRepository")
  7.  * @ORM\Table(name="valoraciones_relojes_stock", schema="perseo")
  8.  * @Vich\Uploadable
  9.  */
  10. class ValoracionesRelojesStock extends ValoracionesRelojes
  11. {
  12.     /**
  13.      * @ORM\Column(type="float", nullable=true, name="precio_promocion")
  14.      */
  15.     private $precioPromocion;
  16.     /**
  17.      * @ORM\Column(type="float", nullable=true, options={"default":"0.00"})
  18.      */
  19.     protected $descuento;
  20.     /**
  21.      * @ORM\ManyToOne(targetEntity="App\Entity\Valoracion", inversedBy="valoracionesRelojesStocks")
  22.      * @ORM\JoinColumn(name="valoracion_id", referencedColumnName="id")
  23.      */
  24.     protected $valoracion;
  25.     /**
  26.      * @ORM\ManyToOne(targetEntity=\App\Entity\Canal::class, inversedBy="valoracionesRelojesStocks")
  27.      * @ORM\JoinColumn(name="plataforma_promocion_id", referencedColumnName="id")
  28.      */
  29.     private $plataformaPromocion;
  30.     public function __construct()
  31.     {
  32.         $this->reloj = new Reloj();
  33.         parent::__construct();
  34.     }
  35.     public function getDescuento(): ?float
  36.     {
  37.         return $this->descuento;
  38.     }
  39.     public function setDescuento(?float $descuento): self
  40.     {
  41.         $this->descuento $descuento;
  42.         return $this;
  43.     }
  44.     public function getValoracion(): ?Valoracion
  45.     {
  46.         return $this->valoracion;
  47.     }
  48.     public function setValoracion(?Valoracion $valoracion): self
  49.     {
  50.         $this->valoracion $valoracion;
  51.         return $this;
  52.     }
  53.     public function getPrecioPromocion(): ?float
  54.     {
  55.         return $this->precioPromocion;
  56.     }
  57.     public function setPrecioPromocion(?float $precioPromocion): static
  58.     {
  59.         $this->precioPromocion $precioPromocion;
  60.         return $this;
  61.     }
  62.     public function getPlataformaPromocion(): ?Canal
  63.     {
  64.         return $this->plataformaPromocion;
  65.     }
  66.     public function setPlataformaPromocion(?Canal $plataformaPromocion): static
  67.     {
  68.         $this->plataformaPromocion $plataformaPromocion;
  69.         return $this;
  70.     }
  71. }