Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
attendee.php
1<?php
2
4
7
9{
10 public const TYPE = 'attendee';
14 protected bool $reInvite = false;
18 protected ?int $id = null;
19 protected ?string $lastName = null;
20 protected ?string $name = null;
22
24 {
25 $this->roleEntity = $roleEntity;
26 }
27
29 {
30 $attendee = new static($roleEntity);
31 $attendee->setReInvite(false);
32
33 return $attendee;
34 }
35
40 public function setEmail(string $email): Attendee
41 {
42 $this->email = $email;
43
44 return $this;
45 }
46
50 public function getEmail(): ?string
51 {
52 return $this->email;
53 }
54
59 public function setReInvite(bool $reInvite): Attendee
60 {
61 $this->reInvite = $reInvite;
62
63 return $this;
64 }
65
69 public function isReInvite(): bool
70 {
71 return $this->reInvite;
72 }
73
77 public function toString(): string
78 {
79 return $this->getFullName();
80 }
81
82 public function getFullName(): string
83 {
84 return $this->name . ' ' . $this->lastName;
85 }
86
87 public function getId(): ?int
88 {
89 return $this->id;
90 }
91
92 public function getType(): string
93 {
94 return self::TYPE;
95 }
96
97 public function getFields(): array
98 {
99 return [
100 'reInvite',
101 'id',
102 'name',
103 'lastName',
104 'roleEntity',
105 ];
106 }
107}
__construct(RoleEntityInterface $roleEntity)
Definition attendee.php:23
RoleEntityInterface $roleEntity
Definition attendee.php:21
static createInstance(RoleEntityInterface $roleEntity)
Definition attendee.php:28