Correct Aphlict websocket URI construction after PHP8 compatibility changes
[phabricator.git] / src / applications / people / storage / PhabricatorRegistrationProfile.php
blob6a901c0b13eda13c2f420f5f90e00e7d894ed2a2
1 <?php
3 final class PhabricatorRegistrationProfile extends Phobject {
5 private $defaultUsername;
6 private $defaultEmail;
7 private $defaultRealName;
8 private $canEditUsername;
9 private $canEditEmail;
10 private $canEditRealName;
11 private $shouldVerifyEmail;
13 public function setShouldVerifyEmail($should_verify_email) {
14 $this->shouldVerifyEmail = $should_verify_email;
15 return $this;
18 public function getShouldVerifyEmail() {
19 return $this->shouldVerifyEmail;
22 public function setCanEditEmail($can_edit_email) {
23 $this->canEditEmail = $can_edit_email;
24 return $this;
27 public function getCanEditEmail() {
28 return $this->canEditEmail;
31 public function setCanEditRealName($can_edit_real_name) {
32 $this->canEditRealName = $can_edit_real_name;
33 return $this;
36 public function getCanEditRealName() {
37 return $this->canEditRealName;
41 public function setCanEditUsername($can_edit_username) {
42 $this->canEditUsername = $can_edit_username;
43 return $this;
46 public function getCanEditUsername() {
47 return $this->canEditUsername;
50 public function setDefaultEmail($default_email) {
51 $this->defaultEmail = $default_email;
52 return $this;
55 public function getDefaultEmail() {
56 return $this->defaultEmail;
59 public function setDefaultRealName($default_real_name) {
60 $this->defaultRealName = $default_real_name;
61 return $this;
64 public function getDefaultRealName() {
65 return $this->defaultRealName;
69 public function setDefaultUsername($default_username) {
70 $this->defaultUsername = $default_username;
71 return $this;
74 public function getDefaultUsername() {
75 return $this->defaultUsername;
78 public function getCanEditAnything() {
79 return $this->getCanEditUsername() ||
80 $this->getCanEditEmail() ||
81 $this->getCanEditRealName();