commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
OrderEditNotProcessedModel.php
1 <?php
2 
3 declare(strict_types=1);
10 
15 use stdClass;
16 
21 {
22  public const DISCRIMINATOR_VALUE = 'NotProcessed';
27  protected $type;
28 
29 
33  public function __construct(
34  ?string $type = null
35  ) {
36  $this->type = $type ?? self::DISCRIMINATOR_VALUE;
37  }
38 
45  public function getType()
46  {
47  if (is_null($this->type)) {
49  $data = $this->raw(self::FIELD_TYPE);
50  if (is_null($data)) {
51  return null;
52  }
53  $this->type = (string) $data;
54  }
55 
56  return $this->type;
57  }
58 }