Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
role.php
1<?php
2
4
6
7class Role extends BaseProperty implements RoleEntityInterface
8{
10
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
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}
__construct(RoleEntityInterface $roleEntity)
Definition role.php:11
RoleEntityInterface $roleEntity
Definition role.php:9