Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
indexcollection.php
1<?php
2
4
5abstract class IndexCollection extends Collection
6{
13 public function add($item, $index = null): IndexCollection
14 {
15 if (!$index)
16 {
17 throw new BaseException('you should pass index');
18 }
19
20 $this->collection[$index] = $item;
21
22 return $this;
23 }
24}