<?php

namespace App\Models\Entity;

/**
 * @Entity @Table(name="orders")
 **/

class OrdersDb implements \JsonSerializable{
  /**
   * @Id @Column(type="integer")
   * @GeneratedValue(strategy="AUTO")
   */
  private $id;

  /**
   * @Column(length=200)
   */
  private $orderId;

  /**
   * @Column(length=200)
   */
  private $sellerId;

   /**
    * @Column(length=200)
    */
  private $productFabric;

  function getId(){
    return $this->id;
  }

  function getOrderId(){
    return $this->orderId;
  }

  function getSellerId(){
    return $this->sellerId;
  }

  function getProductFabric(){
    return $this->productFabric;
  }

  function setId($id) {
      $this->id = $id;
      return $this;
  }

  function setOrderId($orderId) {
      $this->orderId = $orderId;
      return $this;
  }

  function setSellerId($sellerId) {
      $this->sellerId = $sellerId;
      return $this;
  }

  function setProductFabric($productFabric) {
      $this->productFabric = $productFabric;
      return $this;
  }

  public function jsonSerialize() {
      return get_object_vars($this);
  }
}
