commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
MyBusinessUnitUpdateModel.php
1<?php
2
3declare(strict_types=1);
10
16use stdClass;
17
22{
27 protected $version;
28
33 protected $actions;
34
35
39 public function __construct(
40 ?int $version = null,
42 ) {
43 $this->version = $version;
44 $this->actions = $actions;
45 }
46
54 public function getVersion()
55 {
56 if (is_null($this->version)) {
58 $data = $this->raw(self::FIELD_VERSION);
59 if (is_null($data)) {
60 return null;
61 }
62 $this->version = (int) $data;
63 }
64
65 return $this->version;
66 }
67
74 public function getActions()
75 {
76 if (is_null($this->actions)) {
78 $data = $this->raw(self::FIELD_ACTIONS);
79 if (is_null($data)) {
80 return null;
81 }
82 $this->actions = BusinessUnitUpdateActionCollection::fromArray($data);
83 }
84
85 return $this->actions;
86 }
87
88
92 public function setVersion(?int $version): void
93 {
94 $this->version = $version;
95 }
96
101 {
102 $this->actions = $actions;
103 }
104}
setActions(?BusinessUnitUpdateActionCollection $actions)
__construct(?int $version=null, ?BusinessUnitUpdateActionCollection $actions=null)