7use Bitrix\Calendar\SerializeObject;
14 private bool $rsvp =
true;
31 private $participationStatus;
59 string $lastName =
null,
60 string $participationStatus =
null,
62 string $cutype =
null,
63 string $mailto =
null,
93 string $lastName =
null,
94 string $participationStatus =
null,
96 string $cutype =
null,
97 string $mailto =
null,
101 $this->email = $email;
103 $this->lastName = $lastName;
104 $this->participationStatus = $participationStatus;
106 $this->cutype = $cutype;
107 $this->mailto = $mailto;
116 if ($this->name || $this->lastName)
118 return trim(
"{$this->name} {$this->lastName}");
129 return $this->email ?? $this->mailto;
137 return $this->participationStatus;
153 return $this->cutype;
161 return $this->mailto ?? $this->email;
170 $this->participationStatus = $status;
192 $this->lastName = $lastName;
203 $this->email = $email;
225 $this->cutype = $type;
236 $this->mailto = $mailto;
__construct(string $email=null, string $name=null, string $lastName=null, string $participationStatus=null, string $role=null, string $cutype=null, string $mailto=null, bool $rsvp=true)
setLastName(?string $lastName)
setMailto(?string $mailto)
setStatus(?string $status)
static createInstance(string $email=null, string $name=null, string $lastName=null, string $participationStatus=null, string $role=null, string $cutype=null, string $mailto=null, bool $rsvp=true)