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({
  16.      *     "api_v1_valoracion_serialize",
  17.      *     "api_v1_valoracionrelojventa_deserialize"
  18.      * })
  19.      */
  20.     protected $precioPromocion;
  21.     /**
  22.      *  Ajuste sobre el precio final del reloj.
  23.      *  Puede ser positivo para incrementar el precio o negativo para reducirlo.
  24.      *  Sustituye al concepto anterior de descuento.
  25.      *
  26.      * @ORM\Column(type="float", nullable=true, options={
  27.      *     "default":"0.00",
  28.      *     "comment": "Ajuste sobre el precio final del reloj. Positivo aumenta el precio y negativo lo disminuye."
  29.      * })
  30.      * @JMS\Groups({
  31.      *      "api_v1_valoracion_serialize",
  32.      *      "api_v1_valoracionrelojventa_deserialize"
  33.      *  })
  34.      */
  35.     protected $descuento;
  36.     /**
  37.      * @ORM\ManyToOne(targetEntity="App\Entity\Valoracion", inversedBy="valoracionesRelojesStocks")
  38.      * @ORM\JoinColumn(name="valoracion_id", referencedColumnName="id")
  39.      * @JMS\Groups({
  40.      *      "api_v1_valoracionrelojventa_deserialize"
  41.      *  })
  42.      */
  43.     protected $valoracion;
  44.     /**
  45.      * @ORM\ManyToOne(targetEntity=\App\Entity\Canal::class, inversedBy="valoracionesRelojesStocks")
  46.      * @ORM\JoinColumn(name="plataforma_promocion_id", referencedColumnName="id")
  47.      * @JMS\Type(Canal::class)
  48.      * @JMS\Groups({
  49.      *      "api_v1_valoracion_serialize",
  50.      *      "api_v1_valoracionrelojventa_deserialize"
  51.      *  })
  52.      */
  53.     protected $plataformaPromocion;
  54.     public function __construct()
  55.     {
  56.         $this->reloj = new Reloj();
  57.         parent::__construct();
  58.     }
  59.     public function getDescuento(): ?float
  60.     {
  61.         return $this->descuento;
  62.     }
  63.     public function setDescuento(?float $descuento): self
  64.     {
  65.         $this->descuento $descuento;
  66.         return $this;
  67.     }
  68.     public function getValoracion(): ?Valoracion
  69.     {
  70.         return $this->valoracion;
  71.     }
  72.     public function setValoracion(?Valoracion $valoracion): self
  73.     {
  74.         $this->valoracion $valoracion;
  75.         return $this;
  76.     }
  77.     public function getPrecioPromocion(): ?float
  78.     {
  79.         return $this->precioPromocion;
  80.     }
  81.     public function setPrecioPromocion(?float $precioPromocion): static
  82.     {
  83.         $this->precioPromocion $precioPromocion;
  84.         return $this;
  85.     }
  86.     public function getPlataformaPromocion(): ?Canal
  87.     {
  88.         return $this->plataformaPromocion;
  89.     }
  90.     public function setPlataformaPromocion(?Canal $plataformaPromocion): static
  91.     {
  92.         $this->plataformaPromocion $plataformaPromocion;
  93.         return $this;
  94.     }
  95. }