Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
categorybuilderfromarray.php
1<?php
2
4
6{
10 private array $params;
11
15 public function __construct(array $params)
16 {
17 $params = [
18 'id' => $params['id'] ?? null,
19 'name' => $params['name'] ?? null,
20 'rooms' => $params['rooms'] ?? null,
21 ];
22 $this->params = $params;
23 }
24
25 protected function getId()
26 {
27 return $this->params['id'];
28 }
29
30 protected function getName()
31 {
32 return $this->params['name'];
33 }
34
35 protected function getRooms()
36 {
37 return $this->params['rooms'];
38 }
39}