src/Entity/ValoracionesRelojesStock.php line 14

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