<?php

namespace App\Models\Entity\Seller;

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

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

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

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

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

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

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

   function getNameUser(){
     return $this->nameUser;
   }

   function getEmail(){
     return $this->email;
   }

   function getPassword(){
     return $this->password;
   }

   function getWarehouseId(){
     return $this->warehouseId;
   }

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

   function setNameUser($nameUser) {
       $this->nameUser = $nameUser;
       return $this;
   }

   function setEmail($email) {
       $this->email = $email;
       return $this;
   }

   function setPassword($password) {
       $this->password = $password;
       return $this;
   }

   function setWarehouseId($warehouseId) {
       $this->warehouseId = $warehouseId;
       return $this;
   }

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