Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
role.php
1
<?php
2
3
namespace
Bitrix\Calendar\Core\Role
;
4
5
use
Bitrix\Calendar\Core\Base\BaseProperty
;
6
7
class
Role
extends
BaseProperty
implements
RoleEntityInterface
8
{
9
protected
RoleEntityInterface
$roleEntity
;
10
11
public
function
__construct
(
RoleEntityInterface
$roleEntity
)
12
{
13
$this->roleEntity =
$roleEntity
;
14
}
15
19
public
function
getFullName
(): string
20
{
21
return
$this->roleEntity->getFullName();
22
}
23
27
public
function
getId
(): ?int
28
{
29
return
$this->roleEntity->getId();
30
}
31
35
public
function
getType
(): string
36
{
37
return
$this->roleEntity->getType();
38
}
39
43
public
function
getRoleEntity
():
RoleEntityInterface
44
{
45
return
$this->roleEntity
;
46
}
47
51
public
function
getFields
(): array
52
{
53
return
[
54
'name'
,
55
'id'
,
56
];
57
}
58
62
public
function
toString
(): string
63
{
64
return
$this->
getFullName
();
65
}
66
}
Bitrix\Calendar\Core\Base\BaseProperty
Definition
baseproperty.php:6
Bitrix\Calendar\Core\Role\Role
Definition
role.php:8
Bitrix\Calendar\Core\Role\Role\getId
getId()
Definition
role.php:27
Bitrix\Calendar\Core\Role\Role\getFullName
getFullName()
Definition
role.php:19
Bitrix\Calendar\Core\Role\Role\__construct
__construct(RoleEntityInterface $roleEntity)
Definition
role.php:11
Bitrix\Calendar\Core\Role\Role\$roleEntity
RoleEntityInterface $roleEntity
Definition
role.php:9
Bitrix\Calendar\Core\Role\Role\toString
toString()
Definition
role.php:62
Bitrix\Calendar\Core\Role\Role\getRoleEntity
getRoleEntity()
Definition
role.php:43
Bitrix\Calendar\Core\Role\Role\getType
getType()
Definition
role.php:35
Bitrix\Calendar\Core\Role\Role\getFields
getFields()
Definition
role.php:51
Bitrix\Calendar\Core\Role\RoleEntityInterface
Definition
roleentityinterface.php:6
Bitrix\Calendar\Core\Role
Definition
attendee.php:3
modules
calendar
lib
core
role
role.php
Создано системой
1.10.0