Guest User

Untitled

a guest
Oct 22nd, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.14 KB | None | 0 0
  1. <?php
  2. // This class has been generated by the Classgen 2.06 [BETA] ( by Gnomino )
  3.  
  4. class User
  5. {
  6.  
  7.     private $id, $pseudo, $pass_hache, $email;
  8.  
  9.     public function getId ()
  10.     {
  11.         return $this->id;
  12.     }
  13.     public function setId ($new_id)
  14.     {
  15.         $this->id = $new_id;
  16.     }
  17.  
  18.     public function getPseudo ()
  19.     {
  20.         return $this->pseudo;
  21.     }
  22.     public function setPseudo ($new_pseudo)
  23.     {
  24.         $this->pseudo = $new_pseudo;
  25.     }
  26.  
  27.     public function getPass_hache ()
  28.     {
  29.         return $this->pass_hache;
  30.     }
  31.     public function setPass_hache ($new_pass_hache)
  32.     {
  33.         $this->pass_hache = $new_pass_hache;
  34.     }
  35.  
  36.     public function getEmail ()
  37.     {
  38.         return $this->email;
  39.     }
  40.     public function setEmail ($new_email)
  41.     {
  42.         $this->email = $new_email;
  43.     }
  44.  
  45.     public function hydrate (array $data)
  46.     {
  47.         foreach ($data as $k => $v)
  48.         {
  49.             $m = 'set' . ucfirst($k);
  50.             if (method_exists($this, $m))
  51.                 $this->$m($v);
  52.         }
  53.     }
  54.  
  55. }
  56.  
  57. // This class has been generated quickly and properly :)
Add Comment
Please, Sign In to add comment