Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // This class has been generated by the Classgen 2.06 [BETA] ( by Gnomino )
- class User
- {
- private $id, $pseudo, $pass_hache, $email;
- public function getId ()
- {
- return $this->id;
- }
- public function setId ($new_id)
- {
- $this->id = $new_id;
- }
- public function getPseudo ()
- {
- return $this->pseudo;
- }
- public function setPseudo ($new_pseudo)
- {
- $this->pseudo = $new_pseudo;
- }
- public function getPass_hache ()
- {
- return $this->pass_hache;
- }
- public function setPass_hache ($new_pass_hache)
- {
- $this->pass_hache = $new_pass_hache;
- }
- public function getEmail ()
- {
- return $this->email;
- }
- public function setEmail ($new_email)
- {
- $this->email = $new_email;
- }
- public function hydrate (array $data)
- {
- foreach ($data as $k => $v)
- {
- $m = 'set' . ucfirst($k);
- if (method_exists($this, $m))
- $this->$m($v);
- }
- }
- }
- // This class has been generated quickly and properly :)
Add Comment
Please, Sign In to add comment