Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
avatar.php
1
<?php
2
3
namespace
Bitrix\Socialnetwork\Helper
;
4
5
use
Bitrix\Main\Type\Contract\Arrayable
;
6
7
final
class
Avatar
implements
Arrayable
8
{
9
public
function
__construct
(
private
string
$type,
private
string
$id =
''
)
10
{}
11
12
public
function
getType
(): string
13
{
14
return
$this->type;
15
}
16
17
public
function
setType
(
string
$type): self
18
{
19
$this->type = $type;
20
21
return
$this;
22
}
23
24
public
function
getId
(): string
25
{
26
return
$this->id;
27
}
28
29
public
function
setId
(
string
$id): self
30
{
31
$this->
id
= $id;
32
33
return
$this;
34
}
35
36
public
function
toArray
(): array
37
{
38
return
[
39
'type'
=> $this->type,
40
'id'
=> $this->id,
41
];
42
}
43
}
Bitrix\Socialnetwork\Helper\Avatar
Definition
avatar.php:8
Bitrix\Socialnetwork\Helper\Avatar\__construct
__construct(private string $type, private string $id='')
Definition
avatar.php:9
Bitrix\Socialnetwork\Helper\Avatar\getId
getId()
Definition
avatar.php:24
Bitrix\Socialnetwork\Helper\Avatar\toArray
toArray()
Definition
avatar.php:36
Bitrix\Socialnetwork\Helper\Avatar\getType
getType()
Definition
avatar.php:12
Bitrix\Socialnetwork\Helper\Avatar\setType
setType(string $type)
Definition
avatar.php:17
Bitrix\Socialnetwork\Helper\Avatar\setId
setId(string $id)
Definition
avatar.php:29
Bitrix\Main\Type\Contract\Arrayable
Definition
arrayable.php:6
Bitrix\Socialnetwork\Helper
Definition
avatar.php:3
modules
socialnetwork
lib
helper
avatar.php
Создано системой
1.10.0