<?php
namespace App\Models\Entity;

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

 class ItemsOrderDb implements \JsonSerializable{

   /**
    * @Id @Column(type="integer")
    * @GeneratedValue(strategy="AUTO")
    */
   private $id;

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

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

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

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

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

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

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

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

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

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

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

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

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

  function getSkuVtex(){
    return $this->skuVtex;
  }

  function getEan(){
    return $this->ean;
  }

  function getProductName(){
    return $this->productName;
  }

  function getQuantity(){
    return $this->quantity;
  }

  function getPrice(){
    return $this->price;
  }

  function getDiscountPrice(){
    return $this->discountPrice;
  }

  function getRefId(){
    return $this->refId;
  }

  function getImageUrl(){
    return $this->imageUrl;
  }

  function getDetailUrl(){
    return $this->detailUrl;
  }

  function getStatusStock(){
    return $this->statusStock;
  }

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

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

  function setSkuVtex($skuVtex) {
      $this->skuVtex = $skuVtex;
      return $this;
  }

  function setEan($ean) {
      $this->ean = $ean;
      return $this;
  }

  function setProductName($productName) {
      $this->productName = $productName;
      return $this;
  }

  function setQuantity($quantity) {
      $this->quantity = $quantity;
      return $this;
  }

  function setPrice($price) {
      $this->price = $price;
      return $this;
  }

  function setDiscountPrice($discountPrice) {
      $this->discountPrice = $discountPrice;
      return $this;
  }

  function setRefId($refId) {
      $this->refId = $refId;
      return $this;
  }

  function setImageUrl($imageUrl) {
      $this->imageUrl = $imageUrl;
      return $this;
  }

  function setDetailUrl($detailUrl) {
      $this->detailUrl = $detailUrl;
      return $this;
  }

  function setStatusStock($statusStock) {
      $this->statusStock = $statusStock;
      return $this;
  }

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