<?php
namespace App\Entity;
use App\Repository\OrderApiRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=OrderApiRepository::class)
* @ORM\Table(name="`orderApi`")
*/
class OrderApi
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="datetime")
*/
private $dateOrder;
/**
* @ORM\ManyToOne(targetEntity=UserPlatform::class, inversedBy="listOrders")
* @ORM\JoinColumn(nullable=false)
*/
private $customer;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $dateOrderPayEspece;
/**
* @ORM\ManyToOne(targetEntity=UserPlatform::class, inversedBy="listOrders")
* @ORM\JoinColumn(nullable=true)
*/
private $admin;
/**
* @ORM\ManyToOne(targetEntity=AdresseLivraison::class, inversedBy="adresse")
* @ORM\JoinColumn(nullable=false)
*/
private $adresseLiv;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $state;
/**
* @ORM\Column(type="string", nullable=true)
*/
private $statePay;
/**
* @ORM\Column(type="string", nullable=true)
*/
private $statePayVerif;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $motif;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $reforder;
public function getId(): ?int
{
return $this->id;
}
public function getDateOrder(): ?\DateTimeInterface
{
return $this->dateOrder;
}
public function setDateOrder(\DateTimeInterface $dateOrder): self
{
$this->dateOrder = $dateOrder;
return $this;
}
public function getCustomer(): ?UserPlatform
{
return $this->customer;
}
public function setCustomer(?UserPlatform $customer): self
{
$this->customer = $customer;
return $this;
}
public function getDateOrderPayEspece(): ?\DateTimeInterface
{
return $this->dateOrderPayEspece;
}
public function setDateOrderPayEspece(\DateTimeInterface $dateOrderPayEspece): self
{
$this->dateOrderPayEspece = $dateOrderPayEspece;
return $this;
}
public function getAdmin(): ?UserPlatform
{
return $this->admin;
}
public function setAdmin(?UserPlatform $admin): self
{
$this->admin = $admin;
return $this;
}
public function getAdresseLiv(): ?AdresseLivraison
{
return $this->adresseLiv;
}
public function setAdresseLiv(?AdresseLivraison $adresseLiv): self
{
$this->adresseLiv = $adresseLiv;
return $this;
}
public function getState(): ?int
{
return $this->state;
}
public function setState(?int $state): self
{
$this->state = $state;
return $this;
}
public function getStatePay(): ?string
{
return $this->statePay;
}
public function setStatePay(?string $statePay): self
{
$this->statePay = $statePay;
return $this;
}
public function getStatePayVerif(): ?string
{
return $this->statePayVerif;
}
public function setStatePayVerif(?string $statePayVerif): self
{
$this->statePayVerif = $statePayVerif;
return $this;
}
public function getMotif(): ?string
{
return $this->motif;
}
public function setMotif(?string $motif): self
{
$this->motif = $motif;
return $this;
}
public function getReforder(): ?string
{
return $this->reforder;
}
public function setReforder(?string $reforder): self
{
$this->reforder = $reforder;
return $this;
}
}