$name = ''; private $email = ''; public function __construct($data = NULL) { /*...*/ } public function getName() { return $this->name; } public function setName($var) { /*...*/ } public function getEmail() { return $this->email; } public function setEmail($var) { /*...*/ } }