Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
ValueCollection.php
1<?php
2
4
5abstract class ValueCollection implements \ArrayAccess
6{
7 protected $document = [];
8
9 public function __construct(array $document)
10 {
11 $this->document = $document;
12 }
13
14 public function offsetGet($offset)
15 {
16 return $this->document[$offset] ?? null;
17 }
18
19 public function offsetExists($offset)
20 {
21 return isset($this->document[$offset]);
22 }
23
24 public function offsetSet($offset, $value)
25 {
26
27 }
28
29 public function offsetUnset($offset)
30 {
31
32 }
33}