<?php
namespace App\Entity;
use DateTimeInterface;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
/**
* @ORM\Entity(repositoryClass="App\Repository\ActividadCompraRepository")
* @ORM\Table(name="actividad_compra")
* @Gedmo\SoftDeleteable(fieldName="deletedAt", timeAware=false, hardDelete=true)
*/
class ActividadCompra extends \App\Entity\ActividadAbstract
{
/**
* @ORM\Column(type="datetime", nullable=true, name="fecha_compra")
*/
private $fechaCompra;
/**
* @ORM\Column(type="float", nullable=true, name="precio_coste")
*/
private $precioCoste;
/**
* @ORM\Column(type="float", nullable=true, name="precio_costes_compra", options={"comment":"costes asosciados"})
*/
private $precioCostesCompra;
/**
* @ORM\OneToOne(targetEntity=\App\Entity\Reloj::class, inversedBy="actividadCompra")
* @ORM\JoinColumn(name="reloj_compra_id", referencedColumnName="id", unique=true)
*/
private $reloj;
public function getPrecioCoste(): ?float
{
return $this->precioCoste;
}
public function setPrecioCoste(?float $precioCoste): static
{
$this->precioCoste = $precioCoste;
return $this;
}
public function getPrecioCostes(): ?float
{
return $this->precioCostesCompra;
}
public function setPrecioCostes(?float $precioCostes): static
{
$this->precioCostesCompra = $precioCostes;
return $this;
}
public function getReloj(): ?Reloj
{
return $this->reloj;
}
public function setReloj(?Reloj $reloj): static
{
$this->reloj = $reloj;
return $this;
}
public function getFechaCompra(): ?DateTimeInterface
{
return $this->fechaCompra;
}
public function setFechaCompra(?DateTimeInterface $fechaCompra): static
{
$this->fechaCompra = $fechaCompra;
return $this;
}
public function getPrecioCostesCompra(): ?float
{
return $this->precioCostesCompra;
}
public function setPrecioCostesCompra(?float $precioCostesCompra): static
{
$this->precioCostesCompra = $precioCostesCompra;
return $this;
}
}