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.      * @ORM\Column(type="float", nullable=true, options={"default":"0.00"})
  23.      * @JMS\Groups({
  24.      *      "api_v1_valoracion_serialize",
  25.      *      "api_v1_valoracionrelojventa_deserialize"
  26.      *  })
  27.      */
  28.     protected $descuento;
  29.     /**
  30.      * @ORM\ManyToOne(targetEntity="App\Entity\Valoracion", inversedBy="valoracionesRelojesStocks")
  31.      * @ORM\JoinColumn(name="valoracion_id", referencedColumnName="id")
  32.      * @JMS\Groups({
  33.      *      "api_v1_valoracionrelojventa_deserialize"
  34.      *  })
  35.      */
  36.     protected $valoracion;
  37.     /**
  38.      * @ORM\ManyToOne(targetEntity=\App\Entity\Canal::class, inversedBy="valoracionesRelojesStocks")
  39.      * @ORM\JoinColumn(name="plataforma_promocion_id", referencedColumnName="id")
  40.      * @JMS\Type(Canal::class)
  41.      * @JMS\Groups({
  42.      *      "api_v1_valoracion_serialize",
  43.      *      "api_v1_valoracionrelojventa_deserialize"
  44.      *  })
  45.      */
  46.     protected $plataformaPromocion;
  47.     public function __construct()
  48.     {
  49.         $this->reloj = new Reloj();
  50.         parent::__construct();
  51.     }
  52.     public function getDescuento(): ?float
  53.     {
  54.         return $this->descuento;
  55.     }
  56.     public function setDescuento(?float $descuento): self
  57.     {
  58.         $this->descuento $descuento;
  59.         return $this;
  60.     }
  61.     public function getValoracion(): ?Valoracion
  62.     {
  63.         return $this->valoracion;
  64.     }
  65.     public function setValoracion(?Valoracion $valoracion): self
  66.     {
  67.         $this->valoracion $valoracion;
  68.         return $this;
  69.     }
  70.     public function getPrecioPromocion(): ?float
  71.     {
  72.         return $this->precioPromocion;
  73.     }
  74.     public function setPrecioPromocion(?float $precioPromocion): static
  75.     {
  76.         $this->precioPromocion $precioPromocion;
  77.         return $this;
  78.     }
  79.     public function getPlataformaPromocion(): ?Canal
  80.     {
  81.         return $this->plataformaPromocion;
  82.     }
  83.     public function setPlataformaPromocion(?Canal $plataformaPromocion): static
  84.     {
  85.         $this->plataformaPromocion $plataformaPromocion;
  86.         return $this;
  87.     }
  88. }