src/Entity/Cart.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use App\Repository\CartRepository;
  5. use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface;
  6. /**
  7.  * @ORM\Entity(repositoryClass=CartRepository::class)
  8.  */
  9. class Cart
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\ManyToOne(targetEntity=User::class, inversedBy="carts")
  19.      * @ORM\JoinColumn(nullable=false)
  20.      */
  21.     private $user;
  22.     /**
  23.      * @ORM\ManyToOne(targetEntity=Product::class, inversedBy="carts")
  24.      * @ORM\JoinColumn(nullable=false)
  25.      */
  26.     private $produit;
  27.     /**
  28.      * @ORM\Column(type="integer")
  29.      */
  30.     private $quantity;
  31.     /**
  32.      * @ORM\Column(type="float")
  33.      */
  34.     private $total;
  35.     /**
  36.      * @ORM\Column(type="float")
  37.      */
  38.     private $unit_price;
  39.     /**
  40.      * @ORM\Column(type="integer", nullable=true)
  41.      */
  42.     private $collisage;
  43.     /**
  44.      * @ORM\Column(type="boolean", nullable=true)
  45.      */
  46.     private $isValid;
  47.     /**
  48.      * @ORM\Column(type="integer", nullable=true)
  49.      */
  50.     private $totalParProduitSuivantQtMin;
  51.     /**
  52.      * @ORM\Column(type="integer", nullable=true)
  53.      */
  54.     private $proposition_details_id;
  55.     /**
  56.      * @ORM\Column(type="integer", nullable=true)
  57.      */
  58.     private $quantityproposepcie;
  59.     /**
  60.      * @ORM\Column(type="integer", nullable=true)
  61.      */
  62.     private $quantityproposepcie_total_meme_produit;
  63.     /**
  64.      * @ORM\Column(type="string", length=255, nullable=true)
  65.      */
  66.     private $ordonnance;
  67.     public function getId(): ?int
  68.     {
  69.         return $this->id;
  70.     }
  71.     public function getUser(): ?User
  72.     {
  73.         return $this->user;
  74.     }
  75.     public function setUser(?User $user): self
  76.     {
  77.         $this->user $user;
  78.         return $this;
  79.     }
  80.     public function getProduit(): ?Product
  81.     {
  82.         return $this->produit;
  83.     }
  84.     public function setProduit(?Product $produit): self
  85.     {
  86.         $this->produit $produit;
  87.         return $this;
  88.     }
  89.     public function getQuantity(): ?int
  90.     {
  91.         return $this->quantity;
  92.     }
  93.     public function setQuantity(int $quantity): self
  94.     {
  95.         $this->quantity $quantity;
  96.         return $this;
  97.     }
  98.     public function getTotal(): ?float
  99.     {
  100.         return $this->total;
  101.     }
  102.     public function setTotal(float $total): self
  103.     {
  104.         $this->total $total;
  105.         return $this;
  106.     }
  107.     public function getUnitPrice(): ?float
  108.     {
  109.         return $this->unit_price;
  110.     }
  111.     public function setUnitPrice(float $unit_price): self
  112.     {
  113.         $this->unit_price $unit_price;
  114.         return $this;
  115.     }
  116.     public function getCollisage(): ?int
  117.     {
  118.         return $this->collisage;
  119.     }
  120.     public function setCollisage(?int $collisage): self
  121.     {
  122.         $this->collisage $collisage;
  123.         return $this;
  124.     }
  125.     public function getIsValid(): ?bool
  126.     {
  127.         return $this->isValid;
  128.     }
  129.     public function setIsValid(?bool $isValid): self
  130.     {
  131.         $this->isValid $isValid;
  132.         return $this;
  133.     }
  134.     public function getTotalParProduitSuivantQtMin(): ?int
  135.     {
  136.         return $this->totalParProduitSuivantQtMin;
  137.     }
  138.     public function setTotalParProduitSuivantQtMin(?int $totalParProduitSuivantQtMin): self
  139.     {
  140.         $this->totalParProduitSuivantQtMin $totalParProduitSuivantQtMin;
  141.         return $this;
  142.     }
  143.     public function getPropositionDetailsId(): ?int
  144.     {
  145.         return $this->proposition_details_id;
  146.     }
  147.     public function setPropositionDetailsId(?int $proposition_details_id): self
  148.     {
  149.         $this->proposition_details_id $proposition_details_id;
  150.         return $this;
  151.     }
  152.     public function getQuantityproposepcie(): ?int
  153.     {
  154.         return $this->quantityproposepcie;
  155.     }
  156.     public function setQuantityproposepcie(?int $quantityproposepcie): self
  157.     {
  158.         $this->quantityproposepcie $quantityproposepcie;
  159.         return $this;
  160.     }
  161.     public function getQuantityproposepcieTotalMemeProduit(): ?int
  162.     {
  163.         return $this->quantityproposepcie_total_meme_produit;
  164.     }
  165.     public function setQuantityproposepcieTotalMemeProduit(?int $quantityproposepcie_total_meme_produit): self
  166.     {
  167.         $this->quantityproposepcie_total_meme_produit $quantityproposepcie_total_meme_produit;
  168.         return $this;
  169.     }
  170.     public function getOrdonnance(): ?string
  171.     {
  172.         return $this->ordonnance;
  173.     }
  174.     public function setOrdonnance(?string $ordonnance): self
  175.     {
  176.         $this->ordonnance $ordonnance;
  177.         return $this;
  178.     }
  179. }