<?php

namespace App\Models\Entity\Admin;

/**
 * @Entity @Table(name="user")
 **/
 class User 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;


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

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

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

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

   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;
   }

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