3declare(strict_types=1);
5namespace Bitrix\Im\V2\Chat\Member;
8use Bitrix\Im\V2\Rest\RestConvertible;
9use Bitrix\Main\Validation\Rule\InArray;
10use Bitrix\Main\Validation\Rule\PositiveNumber;
15 #[
InArray([Chat::ROLE_MEMBER, Chat::ROLE_MANAGER, Chat::ROLE_OWNER])]
16 public readonly
string $role,
18 public readonly
int $relationId,
29 'role' => mb_strtolower($this->role),
30 'relationId' => $this->relationId,
36 return new static(mb_strtoupper($parameters[
'role'] ??
''), (int)($parameters[
'relationId'] ?? 0));
static getRestEntityName()
__construct(#[InArray([Chat::ROLE_MEMBER, Chat::ROLE_MANAGER, Chat::ROLE_OWNER])] public readonly string $role, #[PositiveNumber] public readonly int $relationId,)
toRestFormat(array $option=[])
static createFromArray(array $parameters)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)