<?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", schema="perseo")
* @Gedmo\SoftDeleteable(fieldName="deletedAt", timeAware=false, hardDelete=true)
*/
class ActividadCompra extends \App\Entity\ActividadAbstract
{
/**
* @ORM\Column(type="float", nullable=true, name="precio_coste")
*/
private $precioCoste;
/**
* @ORM\Column(type="float", nullable=true, name="precio_costes", options={"comment":"costes asosciados"})
*/
private $precioCostes;
/**
* @ORM\Column(
* type="float",
* nullable=true,
* name="precio_coste_total",
* options={"comment":"Coste del reloj + Costes Asociados"}
* )
*/
private $precioCosteTotal;
/**
* @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->precioCostes;
}
public function setPrecioCostes(?float $precioCostes): static
{
$this->precioCostes = $precioCostes;
return $this;
}
public function getPrecioCosteTotal(): ?float
{
return $this->precioCosteTotal;
}
public function setPrecioCosteTotal(?float $precioCosteTotal): static
{
$this->precioCosteTotal = $precioCosteTotal;
return $this;
}
public function getReloj(): ?Reloj
{
return $this->reloj;
}
public function setReloj(?Reloj $reloj): static
{
$this->reloj = $reloj;
return $this;
}
}