Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
Sender.php
1
<?php
2
3
namespace
Bitrix\Socialnetwork\Space\List\Invitation
;
4
5
use
Bitrix\Main\Type\Contract\Arrayable
;
6
7
final
class
Sender
implements
Arrayable
8
{
9
public
function
__construct
(
private
int
$id,
private
string
$name)
10
{}
11
12
public
function
getName
(): string
13
{
14
return
$this->name;
15
}
16
17
public
function
toArray
(): array
18
{
19
return
[
20
'id'
=> $this->id,
21
'name'
=> $this->name,
22
];
23
}
24
}
Bitrix\Socialnetwork\Space\List\Invitation\Sender
Definition
Sender.php:8
Bitrix\Socialnetwork\Space\List\Invitation\Sender\getName
getName()
Definition
Sender.php:12
Bitrix\Socialnetwork\Space\List\Invitation\Sender\toArray
toArray()
Definition
Sender.php:17
Bitrix\Socialnetwork\Space\List\Invitation\Sender\__construct
__construct(private int $id, private string $name)
Definition
Sender.php:9
Bitrix\Main\Type\Contract\Arrayable
Definition
arrayable.php:6
Bitrix\Socialnetwork\Space\List\Invitation
Definition
Invitation.php:3
modules
socialnetwork
lib
Space
List
Invitation
Sender.php
Создано системой
1.10.0