commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
VariantBulkUpdateModel.php
1<?php
2
3declare(strict_types=1);
10
15use stdClass;
16
21{
26 protected $items;
27
32 protected $actions;
33
34
38 public function __construct(
41 ) {
42 $this->items = $items;
43 $this->actions = $actions;
44 }
45
52 public function getItems()
53 {
54 if (is_null($this->items)) {
56 $data = $this->raw(self::FIELD_ITEMS);
57 if (is_null($data)) {
58 return null;
59 }
61 }
62
63 return $this->items;
64 }
65
73 public function getActions()
74 {
75 if (is_null($this->actions)) {
77 $data = $this->raw(self::FIELD_ACTIONS);
78 if (is_null($data)) {
79 return null;
80 }
81 $this->actions = VariantUpdateActionCollection::fromArray($data);
82 }
83
84 return $this->actions;
85 }
86
87
92 {
93 $this->items = $items;
94 }
95
100 {
101 $this->actions = $actions;
102 }
103}
__construct(?VariantBulkUpdateItemCollection $items=null, ?VariantUpdateActionCollection $actions=null)
static fromArray(array $data)