Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
userdata.php
1<?php
2
5
7{
8 protected string $email;
9 protected string $firstName;
10 protected string $lastName;
11 protected string $fullName;
12 protected string $imageUrl;
13 protected bool $emailIsIntended;
14
15 protected string $userPrincipalName = '';
16
17 public function __construct(string $email = '', string $firstName = '', string $lastName = '', string $fullName = '', string $imageUrl = '', $emailIsIntended = false)
18 {
19 $this->email = $email;
20 $this->firstName = $firstName;
21 $this->lastName = $lastName;
22 $this->fullName = $fullName;
23 $this->imageUrl = $imageUrl;
24 $this->emailIsIntended = $emailIsIntended;
25 }
26
27 public function getJson()
28 {
29 return Json::encode([
30 'email' => $this->getEmail(),
31 'first_name' => $this->getFirstName(),
32 'last_name' => $this->getLastName(),
33 'full_name' => $this->getFullName(),
34 'image' => $this->getImageUrl(),
35 'emailIsIntended' => $this->getEmailIsIntended(),
36 'userPrincipalName' => $this->getUserPrincipalName(),
37 ]);
38 }
39
40 public function setEmailIsIntended(bool $emailIsIntended): void
41 {
42 $this->emailIsIntended = $emailIsIntended;
43 }
44
45 public function getEmail(): string
46 {
47 return $this->email;
48 }
49
50 public function getFirstName(): string
51 {
52 return $this->firstName;
53 }
54
55 public function getLastName(): string
56 {
57 return $this->lastName;
58 }
59
60 public function getFullName(): string
61 {
62 return $this->fullName;
63 }
64
65 public function getImageUrl(): string
66 {
67 return $this->imageUrl;
68 }
69
70 public function getEmailIsIntended(): bool
71 {
73 }
74
75 public function getUserPrincipalName(): string
76 {
78 }
79
80 public function setUserPrincipalName(string $value): self
81 {
82 $this->userPrincipalName = $value;
83
84 return $this;
85 }
86}
setEmailIsIntended(bool $emailIsIntended)
Definition userdata.php:40
setUserPrincipalName(string $value)
Definition userdata.php:80
__construct(string $email='', string $firstName='', string $lastName='', string $fullName='', string $imageUrl='', $emailIsIntended=false)
Definition userdata.php:17