src/Entity/PropositionDetails.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PropositionDetailsRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=PropositionDetailsRepository::class)
  7.  */
  8. class PropositionDetails
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\ManyToOne(targetEntity=Proposition::class, inversedBy="propositionDetails")
  18.      * @ORM\JoinColumn(nullable=false, onDelete="CASCADE")
  19.      */
  20.     private $proposition;
  21.     /**
  22.      * @ORM\Column(type="string", length=255)
  23.      */
  24.     private $typeprescription;
  25.     /**
  26.      * @ORM\Column(type="integer")
  27.      */
  28.     private $quantity;
  29.     /**
  30.      * @ORM\ManyToOne(targetEntity=Product::class, inversedBy="propositionDetails")
  31.      * @ORM\JoinColumn(nullable=false, onDelete="CASCADE")
  32.      */
  33.     private $product;
  34.     /**
  35.      * @ORM\Column(type="integer", nullable=true)
  36.      */
  37.     private $quantityproposepcie;
  38.     /**
  39.      * @ORM\Column(type="string", length=255, nullable=true)
  40.      */
  41.     private $ordonnance;
  42.     public function getId(): ?int
  43.     {
  44.         return $this->id;
  45.     }
  46.     public function getProposition(): ?Proposition
  47.     {
  48.         return $this->proposition;
  49.     }
  50.     public function setProposition(?Proposition $proposition): self
  51.     {
  52.         $this->proposition $proposition;
  53.         return $this;
  54.     }
  55.     public function getTypeprescription(): ?string
  56.     {
  57.         return $this->typeprescription;
  58.     }
  59.     public function setTypeprescription(string $typeprescription): self
  60.     {
  61.         $this->typeprescription $typeprescription;
  62.         return $this;
  63.     }
  64.     public function getQuantity(): ?int
  65.     {
  66.         return $this->quantity;
  67.     }
  68.     public function setQuantity(int $quantity): self
  69.     {
  70.         $this->quantity $quantity;
  71.         return $this;
  72.     }
  73.     public function getProduct(): ?Product
  74.     {
  75.         return $this->product;
  76.     }
  77.     
  78.     public function setProduct(?Product $product): self
  79.     {
  80.         $this->product $product;
  81.         return $this;
  82.     }
  83.     public function getQuantityproposepcie(): ?int
  84.     {
  85.         return $this->quantityproposepcie;
  86.     }
  87.     public function setQuantityproposepcie(?int $quantityproposepcie): self
  88.     {
  89.         $this->quantityproposepcie $quantityproposepcie;
  90.         return $this;
  91.     }
  92.     public function getOrdonnance(): ?string
  93.     {
  94.         return $this->ordonnance;
  95.     }
  96.     public function setOrdonnance(?string $ordonnance): self
  97.     {
  98.         $this->ordonnance $ordonnance;
  99.         return $this;
  100.     }
  101. }