commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Project
SearchIndexingConfigurationValuesBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Project
;
10
11
use
Commercetools\Api\Models\Common\LastModifiedBy
;
12
use
Commercetools\Api\Models\Common\LastModifiedByBuilder
;
13
use
Commercetools\Base\Builder
;
14
use
Commercetools\Base\DateTimeImmutableCollection
;
15
use
Commercetools\Base\JsonObject
;
16
use
Commercetools\Base\JsonObjectModel
;
17
use
Commercetools\Base\MapperFactory
;
18
use DateTimeImmutable;
19
use stdClass;
20
24
final
class
SearchIndexingConfigurationValuesBuilder
implements
Builder
25
{
30
private
$status;
31
36
private
$lastModifiedAt;
37
42
private
$lastModifiedBy;
43
50
public
function
getStatus
()
51
{
52
return
$this->status;
53
}
54
61
public
function
getLastModifiedAt
()
62
{
63
return
$this->lastModifiedAt;
64
}
65
72
public
function
getLastModifiedBy
()
73
{
74
return
$this->lastModifiedBy instanceof
LastModifiedByBuilder
? $this->lastModifiedBy->
build
() : $this->lastModifiedBy;
75
}
76
81
public
function
withStatus
(?
string
$status)
82
{
83
$this->status = $status;
84
85
return
$this;
86
}
87
92
public
function
withLastModifiedAt
(?DateTimeImmutable $lastModifiedAt)
93
{
94
$this->lastModifiedAt = $lastModifiedAt;
95
96
return
$this;
97
}
98
103
public
function
withLastModifiedBy
(?
LastModifiedBy
$lastModifiedBy)
104
{
105
$this->lastModifiedBy = $lastModifiedBy;
106
107
return
$this;
108
}
109
114
public
function
withLastModifiedByBuilder
(?
LastModifiedByBuilder
$lastModifiedBy)
115
{
116
$this->lastModifiedBy = $lastModifiedBy;
117
118
return
$this;
119
}
120
121
public
function
build
():
SearchIndexingConfigurationValues
122
{
123
return
new
SearchIndexingConfigurationValuesModel
(
124
$this->status,
125
$this->lastModifiedAt,
126
$this->lastModifiedBy instanceof
LastModifiedByBuilder
? $this->lastModifiedBy->
build
() : $this->lastModifiedBy
127
);
128
}
129
130
public
static
function
of
():
SearchIndexingConfigurationValuesBuilder
131
{
132
return
new
self
();
133
}
134
}
Commercetools\Api\Models\Common\LastModifiedByBuilder
Definition:
LastModifiedByBuilder.php:24
Commercetools\Api\Models\Common\LastModifiedByBuilder\build
build()
Definition:
LastModifiedByBuilder.php:226
Commercetools\Api\Models\Project\SearchIndexingConfigurationValuesBuilder
Definition:
SearchIndexingConfigurationValuesBuilder.php:25
Commercetools\Api\Models\Project\SearchIndexingConfigurationValuesBuilder\getLastModifiedBy
getLastModifiedBy()
Definition:
SearchIndexingConfigurationValuesBuilder.php:72
Commercetools\Api\Models\Project\SearchIndexingConfigurationValuesBuilder\withLastModifiedBy
withLastModifiedBy(?LastModifiedBy $lastModifiedBy)
Definition:
SearchIndexingConfigurationValuesBuilder.php:103
Commercetools\Api\Models\Project\SearchIndexingConfigurationValuesBuilder\getStatus
getStatus()
Definition:
SearchIndexingConfigurationValuesBuilder.php:50
Commercetools\Api\Models\Project\SearchIndexingConfigurationValuesBuilder\of
static of()
Definition:
SearchIndexingConfigurationValuesBuilder.php:130
Commercetools\Api\Models\Project\SearchIndexingConfigurationValuesBuilder\withLastModifiedAt
withLastModifiedAt(?DateTimeImmutable $lastModifiedAt)
Definition:
SearchIndexingConfigurationValuesBuilder.php:92
Commercetools\Api\Models\Project\SearchIndexingConfigurationValuesBuilder\withLastModifiedByBuilder
withLastModifiedByBuilder(?LastModifiedByBuilder $lastModifiedBy)
Definition:
SearchIndexingConfigurationValuesBuilder.php:114
Commercetools\Api\Models\Project\SearchIndexingConfigurationValuesBuilder\getLastModifiedAt
getLastModifiedAt()
Definition:
SearchIndexingConfigurationValuesBuilder.php:61
Commercetools\Api\Models\Project\SearchIndexingConfigurationValuesBuilder\build
build()
Definition:
SearchIndexingConfigurationValuesBuilder.php:121
Commercetools\Api\Models\Project\SearchIndexingConfigurationValuesBuilder\withStatus
withStatus(?string $status)
Definition:
SearchIndexingConfigurationValuesBuilder.php:81
Commercetools\Api\Models\Project\SearchIndexingConfigurationValuesModel
Definition:
SearchIndexingConfigurationValuesModel.php:24
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Base\JsonObjectModel
Definition:
JsonObjectModel.php:15
Commercetools\Base\MapperFactory
Definition:
MapperFactory.php:16
Commercetools\Api\Models\Common\LastModifiedBy
Definition:
LastModifiedBy.php:16
Commercetools\Api\Models\Project\SearchIndexingConfigurationValues
Definition:
SearchIndexingConfigurationValues.php:17
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Project
Definition:
BusinessUnitConfiguration.php:9
Generated by
1.9.1