src/Entity/Order.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\OrderRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=OrderRepository::class)
  7.  * @ORM\Table(name="`orders`")
  8.  */
  9. class Order
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer",name="idOrder")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="integer")
  19.      */
  20.     private $idCustomer;
  21.     /**
  22.      * @ORM\Column(type="integer")
  23.      */
  24.     private $idCartCourse;
  25.     /**
  26.      * @ORM\Column(type="float", nullable=true)
  27.      */
  28.     private $totalAmount;
  29.     /**
  30.      * @ORM\Column(type="float", nullable=true)
  31.      */
  32.     private $totalCourses;
  33.     /**
  34.      * @ORM\Column(type="integer", nullable=true)
  35.      */
  36.     private $totalStudents;
  37.     /**
  38.      * @ORM\Column(type="string", length=255, nullable=true)
  39.      */
  40.     private $invoiceNumber;
  41.     /**
  42.      * @ORM\Column(type="string", length=45, nullable=true)
  43.      */
  44.     private $paymentMethod;
  45.     /**
  46.      * @ORM\Column(type="datetime", nullable=true)
  47.      */
  48.     private $paymentDate;
  49.     /**
  50.      * @ORM\Column(type="datetime", nullable=true)
  51.      */
  52.     private $creationDate;
  53.     /**
  54.      * @ORM\Column(type="string", length=45, nullable=true)
  55.      */
  56.     private $creationBy;
  57.     /**
  58.      * @ORM\Column(type="datetime", nullable=true)
  59.      */
  60.     private $modificationDate;
  61.     /**
  62.      * @ORM\Column(type="string", length=45, nullable=true)
  63.      */
  64.     private $modificationBy;
  65.     /**
  66.      * @ORM\Column(type="boolean", nullable=true)
  67.      */
  68.     private $payed;
  69.     public function getId(): ?int
  70.     {
  71.         return $this->id;
  72.     }
  73.     public function getIdCustomer(): ?int
  74.     {
  75.         return $this->idCustomer;
  76.     }
  77.     public function setIdCustomer(int $idCustomer): self
  78.     {
  79.         $this->idCustomer $idCustomer;
  80.         return $this;
  81.     }
  82.     public function getIdCartCourse(): ?int
  83.     {
  84.         return $this->idCartCourse;
  85.     }
  86.     public function setIdCartCourse(int $idCartCourse): self
  87.     {
  88.         $this->idCartCourse $idCartCourse;
  89.         return $this;
  90.     }
  91.     public function getTotalAmount(): ?float
  92.     {
  93.         return $this->totalAmount;
  94.     }
  95.     public function setTotalAmount(?float $totalAmount): self
  96.     {
  97.         $this->totalAmount $totalAmount;
  98.         return $this;
  99.     }
  100.     public function getTotalCourses(): ?float
  101.     {
  102.         return $this->totalCourses;
  103.     }
  104.     public function setTotalCourses(?float $totalCourses): self
  105.     {
  106.         $this->totalCourses $totalCourses;
  107.         return $this;
  108.     }
  109.     public function getTotalStudents(): ?int
  110.     {
  111.         return $this->totalStudents;
  112.     }
  113.     public function setTotalStudents(?int $totalStudents): self
  114.     {
  115.         $this->totalStudents $totalStudents;
  116.         return $this;
  117.     }
  118.     public function getInvoiceNumber(): ?string
  119.     {
  120.         return $this->invoiceNumber;
  121.     }
  122.     public function setInvoiceNumber(?string $invoiceNumber): self
  123.     {
  124.         $this->invoiceNumber $invoiceNumber;
  125.         return $this;
  126.     }
  127.     public function getPaymentMethod(): ?string
  128.     {
  129.         return $this->paymentMethod;
  130.     }
  131.     public function setPaymentMethod(?string $paymentMethod): self
  132.     {
  133.         $this->paymentMethod $paymentMethod;
  134.         return $this;
  135.     }
  136.     public function getPaymentDate(): ?\DateTimeInterface
  137.     {
  138.         return $this->paymentDate;
  139.     }
  140.     public function setPaymentDate(?\DateTimeInterface $paymentDate): self
  141.     {
  142.         $this->paymentDate $paymentDate;
  143.         return $this;
  144.     }
  145.     public function getCreationDate(): ?\DateTimeInterface
  146.     {
  147.         return $this->creationDate;
  148.     }
  149.     public function setCreationDate(?\DateTimeInterface $creationDate): self
  150.     {
  151.         $this->creationDate $creationDate;
  152.         return $this;
  153.     }
  154.     public function getCreationBy(): ?string
  155.     {
  156.         return $this->creationBy;
  157.     }
  158.     public function setCreationBy(?string $creationBy): self
  159.     {
  160.         $this->creationBy $creationBy;
  161.         return $this;
  162.     }
  163.     public function getModificationDate(): ?\DateTimeInterface
  164.     {
  165.         return $this->modificationDate;
  166.     }
  167.     public function setModificationDate(?\DateTimeInterface $modificationDate): self
  168.     {
  169.         $this->modificationDate $modificationDate;
  170.         return $this;
  171.     }
  172.     public function getModificationBy(): ?string
  173.     {
  174.         return $this->modificationBy;
  175.     }
  176.     public function setModificationBy(?string $modificationBy): self
  177.     {
  178.         $this->modificationBy $modificationBy;
  179.         return $this;
  180.     }
  181.     public function getPayed(): ?bool
  182.     {
  183.         return $this->payed;
  184.     }
  185.     public function setPayed(?bool $payed): self
  186.     {
  187.         $this->payed $payed;
  188.         return $this;
  189.     }
  190. }