commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
OrderEdit
OrderEditNotProcessedModel.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\OrderEdit
;
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
OrderEditNotProcessedModel
extends
JsonObjectModel
implements
OrderEditNotProcessed
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
}
Commercetools\Api\Models\OrderEdit\OrderEditNotProcessedModel
Definition:
OrderEditNotProcessedModel.php:21
Commercetools\Api\Models\OrderEdit\OrderEditNotProcessedModel\$type
$type
Definition:
OrderEditNotProcessedModel.php:27
Commercetools\Api\Models\OrderEdit\OrderEditNotProcessedModel\DISCRIMINATOR_VALUE
const DISCRIMINATOR_VALUE
Definition:
OrderEditNotProcessedModel.php:22
Commercetools\Api\Models\OrderEdit\OrderEditNotProcessedModel\getType
getType()
Definition:
OrderEditNotProcessedModel.php:45
Commercetools\Api\Models\OrderEdit\OrderEditNotProcessedModel\__construct
__construct(?string $type=null)
Definition:
OrderEditNotProcessedModel.php:33
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\Api\Models\OrderEdit\OrderEditNotProcessed
Definition:
OrderEditNotProcessed.php:15
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\OrderEdit
Definition:
OrderEdit.php:9
Generated by
1.9.1