commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
lib
commercetools-api
src
Models
Payment
PaymentStatusDraftModel.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Payment
;
10
11
use
Commercetools\Api\Models\State\StateResourceIdentifier
;
12
use
Commercetools\Api\Models\State\StateResourceIdentifierModel
;
13
use
Commercetools\Base\DateTimeImmutableCollection
;
14
use
Commercetools\Base\JsonObject
;
15
use
Commercetools\Base\JsonObjectModel
;
16
use
Commercetools\Base\MapperFactory
;
17
use stdClass;
18
22
final
class
PaymentStatusDraftModel
extends
JsonObjectModel
implements
PaymentStatusDraft
23
{
28
protected
$interfaceCode
;
29
34
protected
$interfaceText
;
35
40
protected
$state
;
41
42
46
public
function
__construct
(
47
?
string
$interfaceCode
=
null
,
48
?
string
$interfaceText
=
null
,
49
?
StateResourceIdentifier
$state
=
null
50
) {
51
$this->interfaceCode =
$interfaceCode
;
52
$this->interfaceText =
$interfaceText
;
53
$this->state =
$state
;
54
}
55
62
public
function
getInterfaceCode
()
63
{
64
if
(is_null($this->interfaceCode)) {
66
$data = $this->
raw
(self::FIELD_INTERFACE_CODE);
67
if
(is_null($data)) {
68
return
null
;
69
}
70
$this->interfaceCode = (string) $data;
71
}
72
73
return
$this->interfaceCode
;
74
}
75
82
public
function
getInterfaceText
()
83
{
84
if
(is_null($this->interfaceText)) {
86
$data = $this->
raw
(self::FIELD_INTERFACE_TEXT);
87
if
(is_null($data)) {
88
return
null
;
89
}
90
$this->interfaceText = (string) $data;
91
}
92
93
return
$this->interfaceText
;
94
}
95
102
public
function
getState
()
103
{
104
if
(is_null($this->state)) {
106
$data = $this->
raw
(self::FIELD_STATE);
107
if
(is_null($data)) {
108
return
null
;
109
}
110
111
$this->state = StateResourceIdentifierModel::of($data);
112
}
113
114
return
$this->state
;
115
}
116
117
121
public
function
setInterfaceCode
(?
string
$interfaceCode
): void
122
{
123
$this->interfaceCode =
$interfaceCode
;
124
}
125
129
public
function
setInterfaceText
(?
string
$interfaceText
): void
130
{
131
$this->interfaceText =
$interfaceText
;
132
}
133
137
public
function
setState
(?
StateResourceIdentifier
$state
): void
138
{
139
$this->state =
$state
;
140
}
141
}
Commercetools\Api\Models\Payment\PaymentStatusDraftModel
Definition
PaymentStatusDraftModel.php:23
Commercetools\Api\Models\Payment\PaymentStatusDraftModel\setInterfaceText
setInterfaceText(?string $interfaceText)
Definition
PaymentStatusDraftModel.php:129
Commercetools\Api\Models\Payment\PaymentStatusDraftModel\$state
$state
Definition
PaymentStatusDraftModel.php:40
Commercetools\Api\Models\Payment\PaymentStatusDraftModel\getInterfaceText
getInterfaceText()
Definition
PaymentStatusDraftModel.php:82
Commercetools\Api\Models\Payment\PaymentStatusDraftModel\setState
setState(?StateResourceIdentifier $state)
Definition
PaymentStatusDraftModel.php:137
Commercetools\Api\Models\Payment\PaymentStatusDraftModel\getState
getState()
Definition
PaymentStatusDraftModel.php:102
Commercetools\Api\Models\Payment\PaymentStatusDraftModel\$interfaceText
$interfaceText
Definition
PaymentStatusDraftModel.php:34
Commercetools\Api\Models\Payment\PaymentStatusDraftModel\getInterfaceCode
getInterfaceCode()
Definition
PaymentStatusDraftModel.php:62
Commercetools\Api\Models\Payment\PaymentStatusDraftModel\setInterfaceCode
setInterfaceCode(?string $interfaceCode)
Definition
PaymentStatusDraftModel.php:121
Commercetools\Api\Models\Payment\PaymentStatusDraftModel\__construct
__construct(?string $interfaceCode=null, ?string $interfaceText=null, ?StateResourceIdentifier $state=null)
Definition
PaymentStatusDraftModel.php:46
Commercetools\Api\Models\Payment\PaymentStatusDraftModel\$interfaceCode
$interfaceCode
Definition
PaymentStatusDraftModel.php:28
Commercetools\Api\Models\State\StateResourceIdentifierModel
Definition
StateResourceIdentifierModel.php:23
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\Payment\PaymentStatusDraft
Definition
PaymentStatusDraft.php:16
Commercetools\Api\Models\State\StateResourceIdentifier
Definition
StateResourceIdentifier.php:16
Commercetools\Base\JsonObject
Definition
JsonObject.php:15
Commercetools\Api\Models\Payment
Definition
Payment.php:9
Generated by
1.9.8