<?php
namespace App\Entity;
use App\Repository\OrderRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=OrderRepository::class)
* @ORM\Table(name="`orders`")
*/
class Order
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer",name="idOrder")
*/
private $id;
/**
* @ORM\Column(type="integer")
*/
private $idCustomer;
/**
* @ORM\Column(type="integer")
*/
private $idCartCourse;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $totalAmount;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $totalCourses;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $totalStudents;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $invoiceNumber;
/**
* @ORM\Column(type="string", length=45, nullable=true)
*/
private $paymentMethod;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $paymentDate;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $creationDate;
/**
* @ORM\Column(type="string", length=45, nullable=true)
*/
private $creationBy;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $modificationDate;
/**
* @ORM\Column(type="string", length=45, nullable=true)
*/
private $modificationBy;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $payed;
public function getId(): ?int
{
return $this->id;
}
public function getIdCustomer(): ?int
{
return $this->idCustomer;
}
public function setIdCustomer(int $idCustomer): self
{
$this->idCustomer = $idCustomer;
return $this;
}
public function getIdCartCourse(): ?int
{
return $this->idCartCourse;
}
public function setIdCartCourse(int $idCartCourse): self
{
$this->idCartCourse = $idCartCourse;
return $this;
}
public function getTotalAmount(): ?float
{
return $this->totalAmount;
}
public function setTotalAmount(?float $totalAmount): self
{
$this->totalAmount = $totalAmount;
return $this;
}
public function getTotalCourses(): ?float
{
return $this->totalCourses;
}
public function setTotalCourses(?float $totalCourses): self
{
$this->totalCourses = $totalCourses;
return $this;
}
public function getTotalStudents(): ?int
{
return $this->totalStudents;
}
public function setTotalStudents(?int $totalStudents): self
{
$this->totalStudents = $totalStudents;
return $this;
}
public function getInvoiceNumber(): ?string
{
return $this->invoiceNumber;
}
public function setInvoiceNumber(?string $invoiceNumber): self
{
$this->invoiceNumber = $invoiceNumber;
return $this;
}
public function getPaymentMethod(): ?string
{
return $this->paymentMethod;
}
public function setPaymentMethod(?string $paymentMethod): self
{
$this->paymentMethod = $paymentMethod;
return $this;
}
public function getPaymentDate(): ?\DateTimeInterface
{
return $this->paymentDate;
}
public function setPaymentDate(?\DateTimeInterface $paymentDate): self
{
$this->paymentDate = $paymentDate;
return $this;
}
public function getCreationDate(): ?\DateTimeInterface
{
return $this->creationDate;
}
public function setCreationDate(?\DateTimeInterface $creationDate): self
{
$this->creationDate = $creationDate;
return $this;
}
public function getCreationBy(): ?string
{
return $this->creationBy;
}
public function setCreationBy(?string $creationBy): self
{
$this->creationBy = $creationBy;
return $this;
}
public function getModificationDate(): ?\DateTimeInterface
{
return $this->modificationDate;
}
public function setModificationDate(?\DateTimeInterface $modificationDate): self
{
$this->modificationDate = $modificationDate;
return $this;
}
public function getModificationBy(): ?string
{
return $this->modificationBy;
}
public function setModificationBy(?string $modificationBy): self
{
$this->modificationBy = $modificationBy;
return $this;
}
public function getPayed(): ?bool
{
return $this->payed;
}
public function setPayed(?bool $payed): self
{
$this->payed = $payed;
return $this;
}
}