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
Agent
AgentFileNotProcessedWarningModel.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Agent
;
10
11
use
Commercetools\Api\Models\Warning\WarningObject
;
12
use
Commercetools\Api\Models\Warning\WarningObjectModel
;
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
AgentFileNotProcessedWarningModel
extends
JsonObjectModel
implements
AgentFileNotProcessedWarning
23
{
24
public
const
DISCRIMINATOR_VALUE
=
'FileNotProcessed'
;
29
protected
$code
;
30
35
protected
$message
;
36
41
protected
$fileName
;
42
43
47
public
function
__construct
(
48
?
string
$message
=
null
,
49
?
string
$fileName
=
null
,
50
?
string
$code
=
null
51
) {
52
$this->message =
$message
;
53
$this->fileName =
$fileName
;
54
$this->code =
$code
??
self::DISCRIMINATOR_VALUE
;
55
}
56
61
public
function
getCode
()
62
{
63
if
(is_null($this->code)) {
65
$data = $this->
raw
(self::FIELD_CODE);
66
if
(is_null($data)) {
67
return
null
;
68
}
69
$this->code = (string) $data;
70
}
71
72
return
$this->code
;
73
}
74
81
public
function
getMessage
()
82
{
83
if
(is_null($this->message)) {
85
$data = $this->
raw
(self::FIELD_MESSAGE);
86
if
(is_null($data)) {
87
return
null
;
88
}
89
$this->message = (string) $data;
90
}
91
92
return
$this->message
;
93
}
94
101
public
function
getFileName
()
102
{
103
if
(is_null($this->fileName)) {
105
$data = $this->
raw
(self::FIELD_FILE_NAME);
106
if
(is_null($data)) {
107
return
null
;
108
}
109
$this->fileName = (string) $data;
110
}
111
112
return
$this->fileName
;
113
}
114
115
119
public
function
setMessage
(?
string
$message
): void
120
{
121
$this->message =
$message
;
122
}
123
127
public
function
setFileName
(?
string
$fileName
): void
128
{
129
$this->fileName =
$fileName
;
130
}
131
}
Commercetools\Api\Models\Agent\AgentFileNotProcessedWarningModel
Definition
AgentFileNotProcessedWarningModel.php:23
Commercetools\Api\Models\Agent\AgentFileNotProcessedWarningModel\DISCRIMINATOR_VALUE
const DISCRIMINATOR_VALUE
Definition
AgentFileNotProcessedWarningModel.php:24
Commercetools\Api\Models\Agent\AgentFileNotProcessedWarningModel\__construct
__construct(?string $message=null, ?string $fileName=null, ?string $code=null)
Definition
AgentFileNotProcessedWarningModel.php:47
Commercetools\Api\Models\Agent\AgentFileNotProcessedWarningModel\getMessage
getMessage()
Definition
AgentFileNotProcessedWarningModel.php:81
Commercetools\Api\Models\Agent\AgentFileNotProcessedWarningModel\getFileName
getFileName()
Definition
AgentFileNotProcessedWarningModel.php:101
Commercetools\Api\Models\Agent\AgentFileNotProcessedWarningModel\$fileName
$fileName
Definition
AgentFileNotProcessedWarningModel.php:41
Commercetools\Api\Models\Agent\AgentFileNotProcessedWarningModel\getCode
getCode()
Definition
AgentFileNotProcessedWarningModel.php:61
Commercetools\Api\Models\Agent\AgentFileNotProcessedWarningModel\setFileName
setFileName(?string $fileName)
Definition
AgentFileNotProcessedWarningModel.php:127
Commercetools\Api\Models\Agent\AgentFileNotProcessedWarningModel\$code
$code
Definition
AgentFileNotProcessedWarningModel.php:29
Commercetools\Api\Models\Agent\AgentFileNotProcessedWarningModel\$message
$message
Definition
AgentFileNotProcessedWarningModel.php:35
Commercetools\Api\Models\Agent\AgentFileNotProcessedWarningModel\setMessage
setMessage(?string $message)
Definition
AgentFileNotProcessedWarningModel.php:119
Commercetools\Api\Models\Warning\WarningObjectModel
Definition
WarningObjectModel.php:25
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\Agent\AgentFileNotProcessedWarning
Definition
AgentFileNotProcessedWarning.php:16
Commercetools\Api\Models\Warning\WarningObject
Definition
WarningObject.php:17
Commercetools\Base\JsonObject
Definition
JsonObject.php:15
Commercetools\Api\Models\Agent
Definition
AgentBusinessUnitAmbiguousError.php:9
Generated by
1.9.8