commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-history
src
Models
ChangeValue
CustomShippingMethodChangeValueModel.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\History\Models\ChangeValue
;
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
CustomShippingMethodChangeValueModel
extends
JsonObjectModel
implements
CustomShippingMethodChangeValue
21
{
22
23
28
protected
$name
;
29
30
34
public
function
__construct
(
35
?
string
$name
=
null
36
) {
37
$this->name =
$name
;
38
39
}
40
47
public
function
getName
()
48
{
49
if
(is_null($this->name)) {
51
$data = $this->
raw
(self::FIELD_NAME);
52
if
(is_null($data)) {
53
return
null
;
54
}
55
$this->name = (string) $data;
56
}
57
58
return
$this->name
;
59
}
60
61
65
public
function
setName
(?
string
$name
): void
66
{
67
$this->name =
$name
;
68
}
69
70
71
72
}
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\History\Models\ChangeValue\CustomShippingMethodChangeValueModel
Definition:
CustomShippingMethodChangeValueModel.php:21
Commercetools\History\Models\ChangeValue\CustomShippingMethodChangeValueModel\setName
setName(?string $name)
Definition:
CustomShippingMethodChangeValueModel.php:65
Commercetools\History\Models\ChangeValue\CustomShippingMethodChangeValueModel\__construct
__construct(?string $name=null)
Definition:
CustomShippingMethodChangeValueModel.php:34
Commercetools\History\Models\ChangeValue\CustomShippingMethodChangeValueModel\$name
$name
Definition:
CustomShippingMethodChangeValueModel.php:28
Commercetools\History\Models\ChangeValue\CustomShippingMethodChangeValueModel\getName
getName()
Definition:
CustomShippingMethodChangeValueModel.php:47
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\History\Models\ChangeValue\CustomShippingMethodChangeValue
Definition:
CustomShippingMethodChangeValue.php:15
Commercetools\History\Models\ChangeValue
Definition:
AssetChangeValue.php:9
Generated by
1.9.1