1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
BaseUserDto.php
См. документацию.
1<?php
2
3namespace Bitrix\Vote\Model\Dto;
4
5use Bitrix\Main\Type\Contract\Arrayable;
6
7class BaseUserDto implements Arrayable, \JsonSerializable
8{
9 public function __construct(
10 public readonly int $id,
11 public readonly ?string $name,
12 public readonly ?string $image,
13 public readonly ?string $workPosition,
14 )
15 {}
16
17 public function toArray(): array
18 {
19 return [
20 'ID' => $this->id,
21 'NAME' => $this->name,
22 'IMAGE' => $this->image,
23 'WORK_POSITION' => $this->workPosition,
24 ];
25 }
26
27 public function jsonSerialize(): array
28 {
29 return $this->toArray();
30 }
31}
__construct(public readonly int $id, public readonly ?string $name, public readonly ?string $image, public readonly ?string $workPosition,)
Определения BaseUserDto.php:9
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$name
Определения menu_edit.php:35