3 final class PhabricatorRegistrationProfile
extends Phobject
{
5 private $defaultUsername;
7 private $defaultRealName;
8 private $canEditUsername;
10 private $canEditRealName;
11 private $shouldVerifyEmail;
13 public function setShouldVerifyEmail($should_verify_email) {
14 $this->shouldVerifyEmail
= $should_verify_email;
18 public function getShouldVerifyEmail() {
19 return $this->shouldVerifyEmail
;
22 public function setCanEditEmail($can_edit_email) {
23 $this->canEditEmail
= $can_edit_email;
27 public function getCanEditEmail() {
28 return $this->canEditEmail
;
31 public function setCanEditRealName($can_edit_real_name) {
32 $this->canEditRealName
= $can_edit_real_name;
36 public function getCanEditRealName() {
37 return $this->canEditRealName
;
41 public function setCanEditUsername($can_edit_username) {
42 $this->canEditUsername
= $can_edit_username;
46 public function getCanEditUsername() {
47 return $this->canEditUsername
;
50 public function setDefaultEmail($default_email) {
51 $this->defaultEmail
= $default_email;
55 public function getDefaultEmail() {
56 return $this->defaultEmail
;
59 public function setDefaultRealName($default_real_name) {
60 $this->defaultRealName
= $default_real_name;
64 public function getDefaultRealName() {
65 return $this->defaultRealName
;
69 public function setDefaultUsername($default_username) {
70 $this->defaultUsername
= $default_username;
74 public function getDefaultUsername() {
75 return $this->defaultUsername
;
78 public function getCanEditAnything() {
79 return $this->getCanEditUsername() ||
80 $this->getCanEditEmail() ||
81 $this->getCanEditRealName();