commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
VariantBulkUpdateBuilder.php
1<?php
2
3declare(strict_types=1);
10
16use stdClass;
17
21final class VariantBulkUpdateBuilder implements Builder
22{
27 private $items;
28
33 private $actions;
34
41 public function getItems()
42 {
43 return $this->items;
44 }
45
53 public function getActions()
54 {
55 return $this->actions;
56 }
57
63 {
64 $this->items = $items;
65
66 return $this;
67 }
68
73 public function withActions(?VariantUpdateActionCollection $actions)
74 {
75 $this->actions = $actions;
76
77 return $this;
78 }
79
80
81 public function build(): VariantBulkUpdate
82 {
83 return new VariantBulkUpdateModel(
84 $this->items,
85 $this->actions
86 );
87 }
88
89 public static function of(): VariantBulkUpdateBuilder
90 {
91 return new self();
92 }
93}