1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Entity.php
См. документацию.
1<?php
2
4
6
7class Entity implements Arrayable
8{
9 private ?string $link = null;
10
11 public function __construct(private int $id, private string $type)
12 {}
13
14 public function getId(): int
15 {
16 return $this->id;
17 }
18
19 public function getType(): string
20 {
21 return $this->type;
22 }
23
24 public function getLink(): ?string
25 {
26 return $this->link;
27 }
28
29 public function setLink (string $link): self
30 {
31 $this->link = $link;
32
33 return $this;
34 }
35
36 public function toArray(): array
37 {
38 return [
39 'id' => $this->id,
40 'type' => $this->type,
41 'link' => $this->link,
42 ];
43 }
44}
$type
Определения options.php:106
__construct(private int $id, private string $type)
Определения Entity.php:11
setLink(string $link)
Определения Entity.php:29
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804