src/Entity/ActividadCompra.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use DateTimeInterface;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Gedmo\Mapping\Annotation as Gedmo;
  7. /**
  8.  * @ORM\Entity(repositoryClass="App\Repository\ActividadCompraRepository")
  9.  * @ORM\Table(name="actividad_compra", schema="perseo")
  10.  * @Gedmo\SoftDeleteable(fieldName="deletedAt", timeAware=false, hardDelete=true)
  11.  */
  12. class ActividadCompra extends \App\Entity\ActividadAbstract
  13. {
  14.     /**
  15.      * @ORM\Column(type="float", nullable=true, name="precio_coste")
  16.      */
  17.     private $precioCoste;
  18.     /**
  19.      * @ORM\Column(type="float", nullable=true, name="precio_costes", options={"comment":"costes asosciados"})
  20.      */
  21.     private $precioCostes;
  22.     /**
  23.      * @ORM\Column(
  24.      *     type="float",
  25.      *     nullable=true,
  26.      *     name="precio_coste_total",
  27.      *     options={"comment":"Coste del reloj + Costes Asociados"}
  28.      * )
  29.      */
  30.     private $precioCosteTotal;
  31.     /**
  32.      * @ORM\OneToOne(targetEntity=\App\Entity\Reloj::class, inversedBy="actividadCompra")
  33.      * @ORM\JoinColumn(name="reloj_compra_id", referencedColumnName="id", unique=true)
  34.      */
  35.     private $reloj;
  36.     public function getPrecioCoste(): ?float
  37.     {
  38.         return $this->precioCoste;
  39.     }
  40.     public function setPrecioCoste(?float $precioCoste): static
  41.     {
  42.         $this->precioCoste $precioCoste;
  43.         return $this;
  44.     }
  45.     public function getPrecioCostes(): ?float
  46.     {
  47.         return $this->precioCostes;
  48.     }
  49.     public function setPrecioCostes(?float $precioCostes): static
  50.     {
  51.         $this->precioCostes $precioCostes;
  52.         return $this;
  53.     }
  54.     public function getPrecioCosteTotal(): ?float
  55.     {
  56.         return $this->precioCosteTotal;
  57.     }
  58.     public function setPrecioCosteTotal(?float $precioCosteTotal): static
  59.     {
  60.         $this->precioCosteTotal $precioCosteTotal;
  61.         return $this;
  62.     }
  63.     public function getReloj(): ?Reloj
  64.     {
  65.         return $this->reloj;
  66.     }
  67.     public function setReloj(?Reloj $reloj): static
  68.     {
  69.         $this->reloj $reloj;
  70.         return $this;
  71.     }
  72. }