commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
MyQuoteRequestUpdateModel.php
1<?php
2
3declare(strict_types=1);
10
15use stdClass;
16
21{
26 protected $version;
27
32 protected $actions;
33
34
38 public function __construct(
39 ?int $version = null,
41 ) {
42 $this->version = $version;
43 $this->actions = $actions;
44 }
45
50 public function getVersion()
51 {
52 if (is_null($this->version)) {
54 $data = $this->raw(self::FIELD_VERSION);
55 if (is_null($data)) {
56 return null;
57 }
58 $this->version = (int) $data;
59 }
60
61 return $this->version;
62 }
63
68 public function getActions()
69 {
70 if (is_null($this->actions)) {
72 $data = $this->raw(self::FIELD_ACTIONS);
73 if (is_null($data)) {
74 return null;
75 }
77 }
78
79 return $this->actions;
80 }
81
82
86 public function setVersion(?int $version): void
87 {
88 $this->version = $version;
89 }
90
95 {
96 $this->actions = $actions;
97 }
98}
__construct(?int $version=null, ?MyQuoteRequestUpdateActionCollection $actions=null)
setActions(?MyQuoteRequestUpdateActionCollection $actions)
static fromArray(array $data)