<?php
namespace App\Entity;
use App\Repository\DistributorClinicPricesRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: DistributorClinicPricesRepository::class)]
class DistributorClinicPrices
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\ManyToOne(targetEntity: Distributors::class, inversedBy: 'distributorClinicPrices')]
private $distributor;
#[ORM\ManyToOne(targetEntity: Clinics::class, inversedBy: 'distributorClinicPrices')]
private $clinic;
#[ORM\ManyToOne(targetEntity: DistributorProducts::class, inversedBy: 'distributorClinicPrices')]
private $product;
#[ORM\Column(type: 'float')]
private $unitPrice;
#[ORM\Column(type: 'datetime')]
private $modified;
#[ORM\Column(type: 'datetime')]
private $created;
public function getId(): ?int
{
return $this->id;
}
public function getDistributor(): ?Distributors
{
return $this->distributor;
}
public function setDistributor(?Distributors $distributor): self
{
$this->distributor = $distributor;
return $this;
}
public function getClinic(): ?Clinics
{
return $this->clinic;
}
public function setClinic(?Clinics $clinic): self
{
$this->clinic = $clinic;
return $this;
}
public function getProduct(): ?DistributorProducts
{
return $this->product;
}
public function setProduct(?DistributorProducts $product): self
{
$this->product = $product;
return $this;
}
public function getUnitPrice(): ?float
{
return $this->unitPrice;
}
public function setUnitPrice(float $unitPrice): self
{
$this->unitPrice = $unitPrice;
return $this;
}
public function getModified(): ?\DateTimeInterface
{
return $this->modified;
}
public function setModified(\DateTimeInterface $modified): self
{
$this->modified = $modified;
return $this;
}
public function getCreated(): ?\DateTimeInterface
{
return $this->created;
}
public function setCreated(\DateTimeInterface $created): self
{
$this->created = $created;
return $this;
}
}