src/Entity/CartFinished.php line 9
<?php
namespace App\Entity;
use App\Repository\CartFinishedRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: CartFinishedRepository::class)]
class CartFinished
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\ManyToOne(targetEntity: User::class, inversedBy: 'cartFinished')]
private $user;
#[ORM\Column(name: 'commandId', type: 'integer', nullable: false)]
private ?int $commandId;
#[ORM\Column(name: 'commandDate', type: 'date', nullable: true)]
private ?\DateTime $commandDate;
#[ORM\ManyToOne(targetEntity: DeliveryAddress::class, inversedBy: 'cartFinishedDelivery', fetch: 'EAGER')]
private $deliveryAddress;
#[ORM\ManyToOne(targetEntity: DeliveryAddress::class, inversedBy: 'cartFinishedBilling', fetch: 'EAGER')]
private $deliveryBillingAddress;
#[ORM\Column(name: 'totalPaid', type: 'float', nullable: false)]
private ?float $totalPaid;
#[ORM\Column(name: 'totalPriceWithNoReduction', type: 'float', nullable: false)]
private ?float $totalPriceWithNoReduction;
#[ORM\Column(name: 'totalPriceProductLowVatHtva', type: 'float', nullable: false)]
private ?float $TotalPriceProductLowVatHtva;
#[ORM\Column(name: 'totalPriceProductHighVatHtva', type: 'float', nullable: false)]
private ?float $TotalPriceProductHighVatHtva;
#[ORM\Column(name: 'totalPriceProductLowVatTvac', type: 'float', nullable: false)]
private ?float $TotalPriceProductLowVatTvac;
#[ORM\Column(name: 'totalPriceProductHighVatTvac', type: 'float', nullable: false)]
private ?float $TotalPriceProductHighVatTvac;
#[ORM\Column(name: 'totalPriceAllProductHtva', type: 'float', nullable: false)]
private ?float $totalPriceAllProductHtva;
#[ORM\Column(name: 'totalPriceTvacWithRebate', type: 'float', nullable: false)]
private ?float $totalPriceTvacWithRebate;
#[ORM\Column(name: 'totalRebate', type: 'float', nullable: false)]
private ?float $totalRebate;
#[ORM\Column(name: 'pourcentRebate', type: 'float', nullable: false)]
private ?float $pourcentRebate;
#[ORM\Column(name: 'usedJoker', type: 'boolean', nullable: false)]
private ?bool $usedJoker;
/**
* @return \DateTime|null
*/
public function getCommandDate(): ?\DateTime
{
return $this->commandDate;
}
/**
* @param \DateTime|null $commandDate
*/
public function setCommandDate(?\DateTime $commandDate): void
{
$this->commandDate = $commandDate;
}
/**
* @return mixed
*/
public function getDeliveryAddress()
{
return $this->deliveryAddress;
}
/**
* @param mixed $deliveryAddress
*/
public function setDeliveryAddress($deliveryAddress): void
{
$this->deliveryAddress = $deliveryAddress;
}
/**
* @return mixed
*/
public function getDeliveryBillingAddress()
{
return $this->deliveryBillingAddress;
}
/**
* @param mixed $deliveryBillingAddress
*/
public function setDeliveryBillingAddress($deliveryBillingAddress): void
{
$this->deliveryBillingAddress = $deliveryBillingAddress;
}
/**
* @return float|null
*/
public function getTotalPriceProductLowVatHtva(): ?float
{
return $this->TotalPriceProductLowVatHtva;
}
/**
* @param float|null $TotalPriceProductLowVatHtva
*/
public function setTotalPriceProductLowVatHtva(?float $TotalPriceProductLowVatHtva): void
{
$this->TotalPriceProductLowVatHtva = $TotalPriceProductLowVatHtva;
}
/**
* @return float|null
*/
public function getTotalPriceProductHighVatHtva(): ?float
{
return $this->TotalPriceProductHighVatHtva;
}
/**
* @param float|null $TotalPriceProductHighVatHtva
*/
public function setTotalPriceProductHighVatHtva(?float $TotalPriceProductHighVatHtva): void
{
$this->TotalPriceProductHighVatHtva = $TotalPriceProductHighVatHtva;
}
/**
* @return float|null
*/
public function getTotalPriceProductLowVatTvac(): ?float
{
return $this->TotalPriceProductLowVatTvac;
}
/**
* @param float|null $TotalPriceProductLowVatTvac
*/
public function setTotalPriceProductLowVatTvac(?float $TotalPriceProductLowVatTvac): void
{
$this->TotalPriceProductLowVatTvac = $TotalPriceProductLowVatTvac;
}
/**
* @return float|null
*/
public function getTotalPriceProductHighVatTvac(): ?float
{
return $this->TotalPriceProductHighVatTvac;
}
/**
* @param float|null $TotalPriceProductHighVatTvac
*/
public function setTotalPriceProductHighVatTvac(?float $TotalPriceProductHighVatTvac): void
{
$this->TotalPriceProductHighVatTvac = $TotalPriceProductHighVatTvac;
}
/**
* @return float|null
*/
public function getTotalPriceAllProductHtva(): ?float
{
return $this->totalPriceAllProductHtva;
}
/**
* @param float|null $totalPriceAllProductHtva
*/
public function setTotalPriceAllProductHtva(?float $totalPriceAllProductHtva): void
{
$this->totalPriceAllProductHtva = $totalPriceAllProductHtva;
}
/**
* @return float|null
*/
public function getTotalPriceTvacWithRebate(): ?float
{
return $this->totalPriceTvacWithRebate;
}
/**
* @param float|null $totalPriceTvacWithRebate
*/
public function setTotalPriceTvacWithRebate(?float $totalPriceTvacWithRebate): void
{
$this->totalPriceTvacWithRebate = $totalPriceTvacWithRebate;
}
/**
* @return float|null
*/
public function getTotalPriceWithNoReduction(): ?float
{
return $this->totalPriceWithNoReduction;
}
/**
* @param float|null $totalPriceWithNoReduction
*/
public function setTotalPriceWithNoReduction(?float $totalPriceWithNoReduction): void
{
$this->totalPriceWithNoReduction = $totalPriceWithNoReduction;
}
/**
* @return float|null
*/
public function getTotalRebate(): ?float
{
return $this->totalRebate;
}
/**
* @param float|null $totalRebate
*/
public function setTotalRebate(?float $totalRebate): void
{
$this->totalRebate = $totalRebate;
}
/**
* @return float|null
*/
public function getPourcentRebate(): ?float
{
return $this->pourcentRebate;
}
/**
* @param float|null $pourcentRebate
*/
public function setPourcentRebate(?float $pourcentRebate): void
{
$this->pourcentRebate = $pourcentRebate;
}
/**
* @return mixed
*/
public function getUser()
{
return $this->user;
}
/**
* @param mixed $user
*/
public function setUser($user): void
{
$this->user = $user;
}
/**
* @return int|null
*/
public function getCommandId(): ?int
{
return $this->commandId;
}
/**
* @param int|null $commandId
*/
public function setCommandId(?int $commandId): void
{
$this->commandId = $commandId;
}
/**
* @return float|null
*/
public function getTotalPaid(): ?float
{
return $this->totalPaid;
}
/**
* @param float|null $totalPaid
*/
public function setTotalPaid(?float $totalPaid): void
{
$this->totalPaid = $totalPaid;
}
/**
* @return bool|null
*/
public function getUsedJoker(): ?bool
{
return $this->usedJoker;
}
/**
* @param bool|null $usedJoker
*/
public function setUsedJoker(?bool $usedJoker): void
{
$this->usedJoker = $usedJoker;
}
public function getId(): ?int
{
return $this->id;
}
}