commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
CustomShippingMethodChangeValueModel.php
1<?php
2
3declare(strict_types=1);
10
15use stdClass;
16
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}