Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
item.php
1<?php
3
4
5
7
8class Item
9{
10 protected $internalIndex;
11 protected $entity;
12 protected $error;
13 protected $hasError;
14
15 public function __construct(Entity $entity)
16 {
17 $this->entity = $entity;
18 }
19
20 public static function create(Entity $entity)
21 {
22 return new static($entity);
23 }
24
26 {
27 $this->internalIndex = $internalIndex;
28 return $this;
29 }
30
31 public function getInternalIndex()
32 {
34 }
35
36 public function getEntity()
37 {
38 return $this->entity;
39 }
40
44 public function getError()
45 {
46 return $this->error;
47 }
48
49 public function setError(Error $error)
50 {
51 $this->hasError = true;
52 $this->error = $error;
53 }
54
55 public function hasError()
56 {
57 return $this->hasError;
58 }
59}