src/Entity/OrderApi.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\OrderApiRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=OrderApiRepository::class)
  7.  * @ORM\Table(name="`orderApi`")
  8.  */
  9. class OrderApi
  10. {
  11.      
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\Column(type="datetime")
  20.      */
  21.     private $dateOrder;
  22.     /**
  23.      * @ORM\ManyToOne(targetEntity=UserPlatform::class, inversedBy="listOrders")
  24.      * @ORM\JoinColumn(nullable=false)
  25.      */
  26.     private $customer;
  27.     /**
  28.      * @ORM\Column(type="datetime", nullable=true)
  29.      */
  30.     private $dateOrderPayEspece;
  31.     /**
  32.      * @ORM\ManyToOne(targetEntity=UserPlatform::class, inversedBy="listOrders")
  33.      * @ORM\JoinColumn(nullable=true)
  34.      */
  35.     private $admin;
  36.     /**
  37.      * @ORM\ManyToOne(targetEntity=AdresseLivraison::class, inversedBy="adresse")
  38.      * @ORM\JoinColumn(nullable=false)
  39.      */
  40.     private $adresseLiv;
  41.     /**
  42.      * @ORM\Column(type="integer", nullable=true)
  43.      */
  44.     private $state;
  45.     /**
  46.      * @ORM\Column(type="string", nullable=true)
  47.      */
  48.     private $statePay;
  49.     /**
  50.      * @ORM\Column(type="string", nullable=true)
  51.      */
  52.     private $statePayVerif;
  53.     /**
  54.      * @ORM\Column(type="text", nullable=true)
  55.      */
  56.     private $motif;
  57.     /**
  58.      * @ORM\Column(type="string", length=255, nullable=true)
  59.      */
  60.     private $reforder;
  61.     public function getId(): ?int
  62.     {
  63.         return $this->id;
  64.     }
  65.     public function getDateOrder(): ?\DateTimeInterface
  66.     {
  67.         return $this->dateOrder;
  68.     }
  69.     public function setDateOrder(\DateTimeInterface $dateOrder): self
  70.     {
  71.         $this->dateOrder $dateOrder;
  72.         return $this;
  73.     }
  74.     public function getCustomer(): ?UserPlatform
  75.     {
  76.         return $this->customer;
  77.     }
  78.     public function setCustomer(?UserPlatform $customer): self
  79.     {
  80.         $this->customer $customer;
  81.         return $this;
  82.     }
  83.     public function getDateOrderPayEspece(): ?\DateTimeInterface
  84.     {
  85.         return $this->dateOrderPayEspece;
  86.     }
  87.     public function setDateOrderPayEspece(\DateTimeInterface $dateOrderPayEspece): self
  88.     {
  89.         $this->dateOrderPayEspece $dateOrderPayEspece;
  90.         return $this;
  91.     }
  92.     public function getAdmin(): ?UserPlatform
  93.     {
  94.         return $this->admin;
  95.     }
  96.     public function setAdmin(?UserPlatform $admin): self
  97.     {
  98.         $this->admin $admin;
  99.         return $this;
  100.     }
  101.     public function getAdresseLiv(): ?AdresseLivraison
  102.     {
  103.         return $this->adresseLiv;
  104.     }
  105.     public function setAdresseLiv(?AdresseLivraison $adresseLiv): self
  106.     {
  107.         $this->adresseLiv $adresseLiv;
  108.         return $this;
  109.     }
  110.     public function getState(): ?int
  111.     {
  112.         return $this->state;
  113.     }
  114.     public function setState(?int $state): self
  115.     {
  116.         $this->state $state;
  117.         return $this;
  118.     }
  119.     public function getStatePay(): ?string
  120.     {
  121.         return $this->statePay;
  122.     }
  123.     public function setStatePay(?string $statePay): self
  124.     {
  125.         $this->statePay $statePay;
  126.         return $this;
  127.     }
  128.     public function getStatePayVerif(): ?string
  129.     {
  130.         return $this->statePayVerif;
  131.     }
  132.     public function setStatePayVerif(?string $statePayVerif): self
  133.     {
  134.         $this->statePayVerif $statePayVerif;
  135.         return $this;
  136.     }
  137.     public function getMotif(): ?string
  138.     {
  139.         return $this->motif;
  140.     }
  141.     public function setMotif(?string $motif): self
  142.     {
  143.         $this->motif $motif;
  144.         return $this;
  145.     }
  146.     public function getReforder(): ?string
  147.     {
  148.         return $this->reforder;
  149.     }
  150.     public function setReforder(?string $reforder): self
  151.     {
  152.         $this->reforder $reforder;
  153.         return $this;
  154.     }
  155. }