Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
mailuser.php
1<?php
2
4
5use Bitrix\Calendar\SerializeObject;
6
8{
9 use SerializeObject;
10 protected int $id;
11 protected string $email;
12 protected ?string $lastName;
13 protected ?string $name;
14
15 public static function createInstance(
16 int $id,
17 string $email,
18 string $name = null,
19 string $lastName = null
20 ): static
21 {
22 return new static($id, $email, $name, $lastName);
23 }
24 public function __construct(
25 int $id,
26 string $email,
27 string $name = null,
28 string $lastName = null
29 )
30 {
31 $this->id = $id;
32 $this->email = $email;
33 $this->name = $name;
34 $this->lastName = $lastName;
35 }
36
37 public function getId(): int
38 {
39 return $this->id;
40 }
41
42 public function getEmail(): string
43 {
44 return $this->email;
45 }
46
47 public function setEmail(string $email): void
48 {
49 $this->email = $email;
50 }
51
52 public function getLastName(): ?string
53 {
54 return $this->lastName;
55 }
56
57 public function setLastName(?string $lastName): void
58 {
59 $this->lastName = $lastName;
60 }
61
62 public function getName(): ?string
63 {
64 return $this->name;
65 }
66
67 public function setName(?string $name): void
68 {
69 $this->name = $name;
70 }
71}
static createInstance(int $id, string $email, string $name=null, string $lastName=null)
Definition mailuser.php:15
__construct(int $id, string $email, string $name=null, string $lastName=null)
Definition mailuser.php:24