commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
ProductSelection
ProductVariantExclusionModel.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\ProductSelection
;
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
ProductVariantExclusionModel
extends
JsonObjectModel
implements
ProductVariantExclusion
21
{
26
protected
$skus
;
27
28
32
public
function
__construct
(
33
?array
$skus
=
null
34
) {
35
$this->skus =
$skus
;
36
}
37
44
public
function
getSkus
()
45
{
46
if
(is_null($this->skus)) {
48
$data = $this->
raw
(self::FIELD_SKUS);
49
if
(is_null($data)) {
50
return
null
;
51
}
52
$this->skus = $data;
53
}
54
55
return
$this->skus
;
56
}
57
58
62
public
function
setSkus
(?array
$skus
): void
63
{
64
$this->skus =
$skus
;
65
}
66
}
Commercetools\Api\Models\ProductSelection\ProductVariantExclusionModel
Definition:
ProductVariantExclusionModel.php:21
Commercetools\Api\Models\ProductSelection\ProductVariantExclusionModel\setSkus
setSkus(?array $skus)
Definition:
ProductVariantExclusionModel.php:62
Commercetools\Api\Models\ProductSelection\ProductVariantExclusionModel\getSkus
getSkus()
Definition:
ProductVariantExclusionModel.php:44
Commercetools\Api\Models\ProductSelection\ProductVariantExclusionModel\__construct
__construct(?array $skus=null)
Definition:
ProductVariantExclusionModel.php:32
Commercetools\Api\Models\ProductSelection\ProductVariantExclusionModel\$skus
$skus
Definition:
ProductVariantExclusionModel.php:26
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\ProductSelection\ProductVariantExclusion
Definition:
ProductVariantExclusion.php:15
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\ProductSelection
Definition:
AssignedProductReference.php:9
Generated by
1.9.1