Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace Model;
- /**
- * Created by PhpStorm.
- * User: karolbrennan
- * Date: 11/4/16
- * Time: 7:28 PM
- */
- class User
- {
- /**
- * @var int id holds the user's id
- */
- protected $id;
- /**
- * @var string user's name
- */
- protected $name;
- /**
- * @var string user's email
- */
- protected $email;
- /**
- * @var int user's role - 1 = user, 2 = admin, defaults to 1
- */
- protected $role = 1;
- /**
- * @var string user's password
- */
- protected $password;
- /**
- * @return int
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * @param int $id
- */
- public function setId($id)
- {
- $this->id = $id;
- }
- /**
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
- /**
- * @param string $name
- */
- public function setName($name)
- {
- $this->name = $name;
- }
- /**
- * @return string
- */
- public function getEmail()
- {
- return $this->email;
- }
- /**
- * @param string $email
- */
- public function setEmail($email)
- {
- $this->email = $email;
- }
- /**
- * @return int
- */
- public function getRole()
- {
- return $this->role;
- }
- /**
- * @param int $role
- */
- public function setRole($role)
- {
- $this->role = $role;
- }
- /**
- * @return string
- */
- public function getPassword()
- {
- return $this->password;
- }
- /**
- * @param string $password
- */
- public function setPassword($password)
- {
- $this->password = $password;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement