<?php
namespace App\Entity;
use App\Repository\PropositionDetailsRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=PropositionDetailsRepository::class)
*/
class PropositionDetails
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=Proposition::class, inversedBy="propositionDetails")
* @ORM\JoinColumn(nullable=false, onDelete="CASCADE")
*/
private $proposition;
/**
* @ORM\Column(type="string", length=255)
*/
private $typeprescription;
/**
* @ORM\Column(type="integer")
*/
private $quantity;
/**
* @ORM\ManyToOne(targetEntity=Product::class, inversedBy="propositionDetails")
* @ORM\JoinColumn(nullable=false, onDelete="CASCADE")
*/
private $product;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $quantityproposepcie;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $ordonnance;
public function getId(): ?int
{
return $this->id;
}
public function getProposition(): ?Proposition
{
return $this->proposition;
}
public function setProposition(?Proposition $proposition): self
{
$this->proposition = $proposition;
return $this;
}
public function getTypeprescription(): ?string
{
return $this->typeprescription;
}
public function setTypeprescription(string $typeprescription): self
{
$this->typeprescription = $typeprescription;
return $this;
}
public function getQuantity(): ?int
{
return $this->quantity;
}
public function setQuantity(int $quantity): self
{
$this->quantity = $quantity;
return $this;
}
public function getProduct(): ?Product
{
return $this->product;
}
public function setProduct(?Product $product): self
{
$this->product = $product;
return $this;
}
public function getQuantityproposepcie(): ?int
{
return $this->quantityproposepcie;
}
public function setQuantityproposepcie(?int $quantityproposepcie): self
{
$this->quantityproposepcie = $quantityproposepcie;
return $this;
}
public function getOrdonnance(): ?string
{
return $this->ordonnance;
}
public function setOrdonnance(?string $ordonnance): self
{
$this->ordonnance = $ordonnance;
return $this;
}
}