src/Entity/Shoporder.php line 7

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. #[ORM\Table(name'shoporder')]
  5. #[ORM\Entity(repositoryClass'App\Entity\Repository\ShoporderRepository')]
  6. class Shoporder
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\Column(type'integer')]
  10.     #[ORM\GeneratedValue(strategy'AUTO')]
  11.     private $id;
  12.     #[ORM\Column(type'string'nullabletrue)]
  13.     private $paypal_data;
  14.     #[ORM\Column(type'json'nullabletrue)]
  15.     private $order_data;
  16.     #[ORM\Column(type'decimal'nullabletrueprecision6scale2)]
  17.     private $total_value;
  18.     #[ORM\Column(type'string'nullabletrue)]
  19.     private $status;
  20.     #[ORM\Column(type'datetime'nullabletrue)]
  21.     private $date_created;
  22.     #[ORM\ManyToOne(targetEntity'App\Entity\User'inversedBy'shoporder')]
  23.     #[ORM\JoinColumn(name'user_id'referencedColumnName'id'nullablefalse)]
  24.     private $user;
  25.     public function getId(): ?int
  26.     {
  27.         return $this->id;
  28.     }
  29.     public function getPaypalData(): ?string
  30.     {
  31.         return $this->paypal_data;
  32.     }
  33.     public function setPaypalData(?string $paypal_data): self
  34.     {
  35.         $this->paypal_data $paypal_data;
  36.         return $this;
  37.     }
  38.     public function getOrderData()
  39.     {
  40.         return $this->order_data;
  41.     }
  42.     public function setOrderData($order_data): self
  43.     {
  44.         $this->order_data $order_data;
  45.         return $this;
  46.     }
  47.     public function getStatus(): ?string
  48.     {
  49.         return $this->status;
  50.     }
  51.     public function setStatus(?string $status): self
  52.     {
  53.         $this->status $status;
  54.         return $this;
  55.     }
  56.     public function getDateCreated(): ?\DateTimeInterface
  57.     {
  58.         return $this->date_created;
  59.     }
  60.     public function setDateCreated(?\DateTimeInterface $date_created): self
  61.     {
  62.         $this->date_created $date_created;
  63.         return $this;
  64.     }
  65.     public function getUser(): ?User
  66.     {
  67.         return $this->user;
  68.     }
  69.     public function setUser(?User $user): self
  70.     {
  71.         $this->user $user;
  72.         return $this;
  73.     }
  74.     public function getTotalValue()
  75.     {
  76.         return $this->total_value;
  77.     }
  78.     public function setTotalValue($total_value): self
  79.     {
  80.         $this->total_value $total_value;
  81.         return $this;
  82.     }
  83. }