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")
  10.  * @Gedmo\SoftDeleteable(fieldName="deletedAt", timeAware=false, hardDelete=true)
  11.  */
  12. class ActividadCompra extends \App\Entity\ActividadAbstract
  13. {
  14.     /**
  15.      * @ORM\Column(type="datetime", nullable=true, name="fecha_compra")
  16.      */
  17.     private $fechaCompra;
  18.     /**
  19.      * @ORM\Column(type="float", nullable=true, name="precio_coste")
  20.      */
  21.     private $precioCoste;
  22.     /**
  23.      * @ORM\Column(type="float", nullable=true, name="precio_costes_compra", options={"comment":"costes asosciados"})
  24.      */
  25.     private $precioCostesCompra;
  26.     /**
  27.      * @ORM\OneToOne(targetEntity=\App\Entity\Reloj::class, inversedBy="actividadCompra")
  28.      * @ORM\JoinColumn(name="reloj_compra_id", referencedColumnName="id", unique=true)
  29.      */
  30.     private $reloj;
  31.     public function getPrecioCoste(): ?float
  32.     {
  33.         return $this->precioCoste;
  34.     }
  35.     public function setPrecioCoste(?float $precioCoste): static
  36.     {
  37.         $this->precioCoste $precioCoste;
  38.         return $this;
  39.     }
  40.     public function getPrecioCostes(): ?float
  41.     {
  42.         return $this->precioCostesCompra;
  43.     }
  44.     public function setPrecioCostes(?float $precioCostes): static
  45.     {
  46.         $this->precioCostesCompra $precioCostes;
  47.         return $this;
  48.     }
  49.     public function getReloj(): ?Reloj
  50.     {
  51.         return $this->reloj;
  52.     }
  53.     public function setReloj(?Reloj $reloj): static
  54.     {
  55.         $this->reloj $reloj;
  56.         return $this;
  57.     }
  58.     public function getFechaCompra(): ?DateTimeInterface
  59.     {
  60.         return $this->fechaCompra;
  61.     }
  62.     public function setFechaCompra(?DateTimeInterface $fechaCompra): static
  63.     {
  64.         $this->fechaCompra $fechaCompra;
  65.         return $this;
  66.     }
  67.     public function getPrecioCostesCompra(): ?float
  68.     {
  69.         return $this->precioCostesCompra;
  70.     }
  71.     public function setPrecioCostesCompra(?float $precioCostesCompra): static
  72.     {
  73.         $this->precioCostesCompra $precioCostesCompra;
  74.         return $this;
  75.     }
  76. }