Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
entitybasemethods.php
1<?php
3trait EntityBaseMethods
4{
6// protected $id = 0;
8// protected $data = [];
9
10 public function getId()
11 {
12 return $this->id;
13 }
14
15 public function getData()
16 {
17 return $this->data;
18 }
19
20 public function offsetExists($offset)
21 {
22 return array_key_exists($offset, $this->data);
23 }
24
25 public function offsetGet($offset)
26 {
27 return $this->data[$offset];
28 }
29
30 public function offsetSet($offset, $value)
31 {
32
33 }
34
35 public function offsetUnset($offset)
36 {
37
38 }
39}