<?php
namespace App\Entity;
use App\Repository\ProgrammingDayPriceRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=ProgrammingDayPriceRepository::class)
*/
class ProgrammingDayPrice
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="date", nullable=true)
*/
private $customDate;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $customPrice;
/**
* @ORM\ManyToOne(targetEntity=Product::class, inversedBy="dayPrice")
*/
private $product;
public function getId(): ?int
{
return $this->id;
}
public function getCustomDate(): ?\DateTimeInterface
{
return $this->customDate;
}
public function setCustomDate(?\DateTimeInterface $customDate): self
{
$this->customDate = $customDate;
return $this;
}
public function getCustomPrice(): ?float
{
return $this->customPrice;
}
public function setCustomPrice(?float $customPrice): self
{
$this->customPrice = $customPrice;
return $this;
}
public function getProduct(): ?Product
{
return $this->product;
}
public function setProduct(?Product $product): self
{
$this->product = $product;
return $this;
}
}