src/Entity/CartFinished.php line 9

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CartFinishedRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassCartFinishedRepository::class)]
  6. class CartFinished
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\ManyToOne(targetEntityUser::class, inversedBy'cartFinished')]
  13.     private $user;
  14.     #[ORM\Column(name'commandId'type'integer'nullablefalse)]
  15.     private ?int $commandId;
  16.     #[ORM\Column(name'commandDate'type'date'nullabletrue)]
  17.     private ?\DateTime $commandDate;
  18.     #[ORM\ManyToOne(targetEntityDeliveryAddress::class, inversedBy'cartFinishedDelivery'fetch'EAGER')]
  19.     private $deliveryAddress;
  20.     #[ORM\ManyToOne(targetEntityDeliveryAddress::class, inversedBy'cartFinishedBilling'fetch'EAGER')]
  21.     private $deliveryBillingAddress;
  22.     #[ORM\Column(name'totalPaid'type'float'nullablefalse)]
  23.     private ?float $totalPaid;
  24.     #[ORM\Column(name'totalPriceWithNoReduction'type'float'nullablefalse)]
  25.     private ?float $totalPriceWithNoReduction;
  26.     #[ORM\Column(name'totalPriceProductLowVatHtva'type'float'nullablefalse)]
  27.     private ?float $TotalPriceProductLowVatHtva;
  28.     #[ORM\Column(name'totalPriceProductHighVatHtva'type'float'nullablefalse)]
  29.     private ?float $TotalPriceProductHighVatHtva;
  30.     #[ORM\Column(name'totalPriceProductLowVatTvac'type'float'nullablefalse)]
  31.     private ?float $TotalPriceProductLowVatTvac;
  32.     #[ORM\Column(name'totalPriceProductHighVatTvac'type'float'nullablefalse)]
  33.     private ?float $TotalPriceProductHighVatTvac;
  34.     #[ORM\Column(name'totalPriceAllProductHtva'type'float'nullablefalse)]
  35.     private ?float $totalPriceAllProductHtva;
  36.     #[ORM\Column(name'totalPriceTvacWithRebate'type'float'nullablefalse)]
  37.     private ?float $totalPriceTvacWithRebate;
  38.     #[ORM\Column(name'totalRebate'type'float'nullablefalse)]
  39.     private ?float $totalRebate;
  40.     #[ORM\Column(name'pourcentRebate'type'float'nullablefalse)]
  41.     private ?float $pourcentRebate;
  42.     #[ORM\Column(name'usedJoker'type'boolean'nullablefalse)]
  43.     private ?bool $usedJoker;
  44.     /**
  45.      * @return \DateTime|null
  46.      */
  47.     public function getCommandDate(): ?\DateTime
  48.     {
  49.         return $this->commandDate;
  50.     }
  51.     /**
  52.      * @param \DateTime|null $commandDate
  53.      */
  54.     public function setCommandDate(?\DateTime $commandDate): void
  55.     {
  56.         $this->commandDate $commandDate;
  57.     }
  58.     /**
  59.      * @return mixed
  60.      */
  61.     public function getDeliveryAddress()
  62.     {
  63.         return $this->deliveryAddress;
  64.     }
  65.     /**
  66.      * @param mixed $deliveryAddress
  67.      */
  68.     public function setDeliveryAddress($deliveryAddress): void
  69.     {
  70.         $this->deliveryAddress $deliveryAddress;
  71.     }
  72.     /**
  73.      * @return mixed
  74.      */
  75.     public function getDeliveryBillingAddress()
  76.     {
  77.         return $this->deliveryBillingAddress;
  78.     }
  79.     /**
  80.      * @param mixed $deliveryBillingAddress
  81.      */
  82.     public function setDeliveryBillingAddress($deliveryBillingAddress): void
  83.     {
  84.         $this->deliveryBillingAddress $deliveryBillingAddress;
  85.     }
  86.     /**
  87.      * @return float|null
  88.      */
  89.     public function getTotalPriceProductLowVatHtva(): ?float
  90.     {
  91.         return $this->TotalPriceProductLowVatHtva;
  92.     }
  93.     /**
  94.      * @param float|null $TotalPriceProductLowVatHtva
  95.      */
  96.     public function setTotalPriceProductLowVatHtva(?float $TotalPriceProductLowVatHtva): void
  97.     {
  98.         $this->TotalPriceProductLowVatHtva $TotalPriceProductLowVatHtva;
  99.     }
  100.     /**
  101.      * @return float|null
  102.      */
  103.     public function getTotalPriceProductHighVatHtva(): ?float
  104.     {
  105.         return $this->TotalPriceProductHighVatHtva;
  106.     }
  107.     /**
  108.      * @param float|null $TotalPriceProductHighVatHtva
  109.      */
  110.     public function setTotalPriceProductHighVatHtva(?float $TotalPriceProductHighVatHtva): void
  111.     {
  112.         $this->TotalPriceProductHighVatHtva $TotalPriceProductHighVatHtva;
  113.     }
  114.     /**
  115.      * @return float|null
  116.      */
  117.     public function getTotalPriceProductLowVatTvac(): ?float
  118.     {
  119.         return $this->TotalPriceProductLowVatTvac;
  120.     }
  121.     /**
  122.      * @param float|null $TotalPriceProductLowVatTvac
  123.      */
  124.     public function setTotalPriceProductLowVatTvac(?float $TotalPriceProductLowVatTvac): void
  125.     {
  126.         $this->TotalPriceProductLowVatTvac $TotalPriceProductLowVatTvac;
  127.     }
  128.     /**
  129.      * @return float|null
  130.      */
  131.     public function getTotalPriceProductHighVatTvac(): ?float
  132.     {
  133.         return $this->TotalPriceProductHighVatTvac;
  134.     }
  135.     /**
  136.      * @param float|null $TotalPriceProductHighVatTvac
  137.      */
  138.     public function setTotalPriceProductHighVatTvac(?float $TotalPriceProductHighVatTvac): void
  139.     {
  140.         $this->TotalPriceProductHighVatTvac $TotalPriceProductHighVatTvac;
  141.     }
  142.     /**
  143.      * @return float|null
  144.      */
  145.     public function getTotalPriceAllProductHtva(): ?float
  146.     {
  147.         return $this->totalPriceAllProductHtva;
  148.     }
  149.     /**
  150.      * @param float|null $totalPriceAllProductHtva
  151.      */
  152.     public function setTotalPriceAllProductHtva(?float $totalPriceAllProductHtva): void
  153.     {
  154.         $this->totalPriceAllProductHtva $totalPriceAllProductHtva;
  155.     }
  156.     /**
  157.      * @return float|null
  158.      */
  159.     public function getTotalPriceTvacWithRebate(): ?float
  160.     {
  161.         return $this->totalPriceTvacWithRebate;
  162.     }
  163.     /**
  164.      * @param float|null $totalPriceTvacWithRebate
  165.      */
  166.     public function setTotalPriceTvacWithRebate(?float $totalPriceTvacWithRebate): void
  167.     {
  168.         $this->totalPriceTvacWithRebate $totalPriceTvacWithRebate;
  169.     }
  170.     /**
  171.      * @return float|null
  172.      */
  173.     public function getTotalPriceWithNoReduction(): ?float
  174.     {
  175.         return $this->totalPriceWithNoReduction;
  176.     }
  177.     /**
  178.      * @param float|null $totalPriceWithNoReduction
  179.      */
  180.     public function setTotalPriceWithNoReduction(?float $totalPriceWithNoReduction): void
  181.     {
  182.         $this->totalPriceWithNoReduction $totalPriceWithNoReduction;
  183.     }
  184.     /**
  185.      * @return float|null
  186.      */
  187.     public function getTotalRebate(): ?float
  188.     {
  189.         return $this->totalRebate;
  190.     }
  191.     /**
  192.      * @param float|null $totalRebate
  193.      */
  194.     public function setTotalRebate(?float $totalRebate): void
  195.     {
  196.         $this->totalRebate $totalRebate;
  197.     }
  198.     /**
  199.      * @return float|null
  200.      */
  201.     public function getPourcentRebate(): ?float
  202.     {
  203.         return $this->pourcentRebate;
  204.     }
  205.     /**
  206.      * @param float|null $pourcentRebate
  207.      */
  208.     public function setPourcentRebate(?float $pourcentRebate): void
  209.     {
  210.         $this->pourcentRebate $pourcentRebate;
  211.     }
  212.     /**
  213.      * @return mixed
  214.      */
  215.     public function getUser()
  216.     {
  217.         return $this->user;
  218.     }
  219.     /**
  220.      * @param mixed $user
  221.      */
  222.     public function setUser($user): void
  223.     {
  224.         $this->user $user;
  225.     }
  226.     /**
  227.      * @return int|null
  228.      */
  229.     public function getCommandId(): ?int
  230.     {
  231.         return $this->commandId;
  232.     }
  233.     /**
  234.      * @param int|null $commandId
  235.      */
  236.     public function setCommandId(?int $commandId): void
  237.     {
  238.         $this->commandId $commandId;
  239.     }
  240.     /**
  241.      * @return float|null
  242.      */
  243.     public function getTotalPaid(): ?float
  244.     {
  245.         return $this->totalPaid;
  246.     }
  247.     /**
  248.      * @param float|null $totalPaid
  249.      */
  250.     public function setTotalPaid(?float $totalPaid): void
  251.     {
  252.         $this->totalPaid $totalPaid;
  253.     }
  254.     /**
  255.      * @return bool|null
  256.      */
  257.     public function getUsedJoker(): ?bool
  258.     {
  259.         return $this->usedJoker;
  260.     }
  261.     /**
  262.      * @param bool|null $usedJoker
  263.      */
  264.     public function setUsedJoker(?bool $usedJoker): void
  265.     {
  266.         $this->usedJoker $usedJoker;
  267.     }
  268.     public function getId(): ?int
  269.     {
  270.         return $this->id;
  271.     }
  272. }