commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
ChangeValueExternalChangeValueModel.php
1<?php
2
3declare(strict_types=1);
10
15use stdClass;
16
21{
22
23 public const DISCRIMINATOR_VALUE = 'external';
28 protected $type;
29
30
34 public function __construct(
35 ?string $type = null
36 ) {
37 $this->type = $type ?? self::DISCRIMINATOR_VALUE;
38 }
39
44 public function getType()
45 {
46 if (is_null($this->type)) {
48 $data = $this->raw(self::FIELD_TYPE);
49 if (is_null($data)) {
50 return null;
51 }
52 $this->type = (string) $data;
53 }
54
55 return $this->type;
56 }
57
58
59
60
61
62}