Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Sender.php
1<?php
2
4
6
7final class Sender implements Arrayable
8{
9 public function __construct(private int $id, private string $name)
10 {}
11
12 public function getName(): string
13 {
14 return $this->name;
15 }
16
17 public function toArray(): array
18 {
19 return [
20 'id' => $this->id,
21 'name' => $this->name,
22 ];
23 }
24}
__construct(private int $id, private string $name)
Definition Sender.php:9