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