commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
v
w
z
Variables
$
a
d
e
f
g
o
r
s
t
u
•
All
Classes
Namespaces
Functions
Variables
Pages
Loading...
Searching...
No Matches
lib
commercetools-api
src
Models
Common
UpdateActionModel.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Common
;
10
11
use
Commercetools\Base\DateTimeImmutableCollection
;
12
use
Commercetools\Base\JsonObject
;
13
use
Commercetools\Base\JsonObjectModel
;
14
use
Commercetools\Base\MapperFactory
;
15
use stdClass;
16
20
final
class
UpdateActionModel
extends
JsonObjectModel
implements
UpdateAction
21
{
26
protected
$action
;
27
28
32
public
function
__construct
(
33
?
string
$action
=
null
34
) {
35
$this->action =
$action
;
36
}
32
public
function
__construct
( {
…
}
37
42
public
function
getAction
()
43
{
44
if
(is_null($this->action)) {
46
$data = $this->
raw
(self::FIELD_ACTION);
47
if
(is_null($data)) {
48
return
null
;
49
}
50
$this->action = (string) $data;
51
}
52
53
return
$this->action
;
54
}
42
public
function
getAction
() {
…
}
55
56
60
public
function
setAction
(?
string
$action
): void
61
{
62
$this->action =
$action
;
63
}
60
public
function
setAction
(?
string
$action
): void {
…
}
64
}
20
final
class
UpdateActionModel
extends
JsonObjectModel
implements
UpdateAction
{
…
};
Commercetools\Api\Models\Common\UpdateActionModel
Definition
UpdateActionModel.php:21
Commercetools\Api\Models\Common\UpdateActionModel\getAction
getAction()
Definition
UpdateActionModel.php:42
Commercetools\Api\Models\Common\UpdateActionModel\__construct
__construct(?string $action=null)
Definition
UpdateActionModel.php:32
Commercetools\Api\Models\Common\UpdateActionModel\setAction
setAction(?string $action)
Definition
UpdateActionModel.php:60
Commercetools\Api\Models\Common\UpdateActionModel\$action
$action
Definition
UpdateActionModel.php:26
Commercetools\Base\BaseJsonObject\raw
raw(string $field)
Definition
BaseJsonObject.php:57
Commercetools\Base\DateTimeImmutableCollection
Definition
DateTimeImmutableCollection.php:21
Commercetools\Base\JsonObjectModel
Definition
JsonObjectModel.php:15
Commercetools\Base\MapperFactory
Definition
MapperFactory.php:16
Commercetools\Api\Models\Common\UpdateAction
Definition
UpdateAction.php:15
Commercetools\Base\JsonObject
Definition
JsonObject.php:15
Commercetools\Api\Models\Common
Definition
Address.php:9
Generated by
1.9.8