Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
builder.php
1<?php
3
4use \Bitrix\Main\Result,
6
10abstract class Builder implements Buildable, ArchivePackable
11{
13 protected $order = null;
15 protected $packedOrder = null;
16 protected $entitiesFields = [];
17 protected $packedBasketItems = [];
18
19 public function setPackedOrder(PackedField $field)
20 {
21 $this->packedOrder = $field;
22 }
23
24 public function addPackedBasketItem($id, PackedField $field)
25 {
26 $this->packedBasketItems[$id] = $field;
27 }
28
29 public function tryUnpack()
30 {
31 return new Result();
32 }
33
34 public function setEntityFields($name, array $value = null)
35 {
36 if (!is_array($this->entitiesFields[$name]))
37 {
38 $this->entitiesFields[$name] = [];
39 }
40 $this->entitiesFields[$name] = $value;
41 }
42
43 abstract public function buildOrder();
44}
setEntityFields($name, array $value=null)
Definition builder.php:34
addPackedBasketItem($id, PackedField $field)
Definition builder.php:24
setPackedOrder(PackedField $field)
Definition builder.php:19