commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
|
Public Member Functions | |
__construct (array $data=null) | |
toArray () | |
jsonSerialize () | |
put (string $key, $value) | |
at (string $key) | |
with (string $key, callable $callable=null) | |
getIterator () | |
current () | |
next () | |
key () | |
valid () | |
rewind () | |
offsetExists ($offset) | |
offsetGet ($offset) | |
offsetSet ($offset, $value) | |
offsetUnset ($offset) | |
Static Public Member Functions | |
static | of ($data=null) |
static | fromStdClass (stdClass $data=null) |
static | fromArray (array $data) |
Protected Member Functions | |
index ($data) | |
get (string $key) | |
set ($data, string $key) | |
store (string $key, $value) | |
mapper () | |
addToIndex (string $field, string $key, string $indexKey) | |
valueByKey (string $field, string $key) | |
@template TObject <TObject>
Definition at line 18 of file MapperMap.php.
|
final |
@psalm-param ?array<string, TObject|stdClass> $data
array | null | $data |
Definition at line 31 of file MapperMap.php.
|
finalprotected |
@psalm-param TObject|stdClass $value
Definition at line 171 of file MapperMap.php.
Commercetools\Base\MapperMap::at | ( | string | $key | ) |
@psalm-return ?TObject
Implements Commercetools\Base\CMap.
Definition at line 145 of file MapperMap.php.
Commercetools\Base\MapperMap::current | ( | ) |
@psalm-var ?TObject
Implements Commercetools\Base\CMap.
Definition at line 200 of file MapperMap.php.
|
staticfinal |
@template T @psalm-param array<string, T|stdClass> $data
Implements Commercetools\Base\CMap.
Definition at line 87 of file MapperMap.php.
|
staticfinal |
@psalm-param ?stdClass $data @psalm-return static
@psalm-var array<string, TObject|stdClass> $t
Implements Commercetools\Base\CMap.
Definition at line 75 of file MapperMap.php.
|
finalprotected |
@psalm-return TObject|stdClass|null
Definition at line 102 of file MapperMap.php.
Commercetools\Base\MapperMap::getIterator | ( | ) |
Implements Commercetools\Base\CMap.
Definition at line 184 of file MapperMap.php.
|
protected |
mixed | $data |
Definition at line 95 of file MapperMap.php.
Commercetools\Base\MapperMap::jsonSerialize | ( | ) |
@psalm-return array<string, stdClass|mixed>
Implements Commercetools\Base\CMap.
Definition at line 66 of file MapperMap.php.
Commercetools\Base\MapperMap::key | ( | ) |
@psalm-var string
Implements Commercetools\Base\CMap.
Definition at line 217 of file MapperMap.php.
|
abstractprotected |
@psalm-return callable(string): ?TObject
Reimplemented in Commercetools\Import\Models\Customfields\FieldContainerModel, Commercetools\Import\Models\Customfields\FieldContainerBuilder, Commercetools\Import\Models\Common\LocalizedStringModel, Commercetools\Import\Models\Common\LocalizedStringBuilder, Commercetools\History\Models\Common\LocalizedStringModel, Commercetools\History\Models\Common\LocalizedStringBuilder, Commercetools\Api\Models\Type\FieldContainerModel, Commercetools\Api\Models\Type\FieldContainerBuilder, Commercetools\Api\Models\Product\SearchKeywordsModel, Commercetools\Api\Models\Product\SearchKeywordsBuilder, Commercetools\Api\Models\Product\ProductVariantChannelAvailabilityMapModel, Commercetools\Api\Models\Product\ProductVariantChannelAvailabilityMapBuilder, Commercetools\Api\Models\Product\CategoryOrderHintsModel, Commercetools\Api\Models\Product\CategoryOrderHintsBuilder, Commercetools\Api\Models\Common\LocalizedStringModel, and Commercetools\Api\Models\Common\LocalizedStringBuilder.
Commercetools\Base\MapperMap::next | ( | ) |
|
staticfinal |
@template T @psalm-param ?stdClass|array<string, T|stdClass> $data
@psalm-var stdClass $data)
Implements Commercetools\Base\CMap.
Definition at line 45 of file MapperMap.php.
Commercetools\Base\MapperMap::offsetExists | ( | $offset | ) |
string | $offset |
Implements Commercetools\Base\CMap.
Definition at line 243 of file MapperMap.php.
Commercetools\Base\MapperMap::offsetGet | ( | $offset | ) |
string | $offset |
Implements Commercetools\Base\CMap.
Definition at line 252 of file MapperMap.php.
Commercetools\Base\MapperMap::offsetSet | ( | $offset, | |
$value | |||
) |
string | $offset | @psalm-param TObject|stdClass $value |
mixed | $value |
Implements Commercetools\Base\CMap.
Definition at line 263 of file MapperMap.php.
Commercetools\Base\MapperMap::offsetUnset | ( | $offset | ) |
string | $offset |
@psalm-suppress PossiblyNullArrayAccess
Implements Commercetools\Base\CMap.
Definition at line 272 of file MapperMap.php.
Commercetools\Base\MapperMap::put | ( | string | $key, |
$value | |||
) |
@psalm-param TObject|stdClass $value
$value |
Implements Commercetools\Base\CMap.
Definition at line 123 of file MapperMap.php.
Commercetools\Base\MapperMap::rewind | ( | ) |
|
finalprotected |
@psalm-param TObject|stdClass $data
Definition at line 113 of file MapperMap.php.
|
finalprotected |
@psalm-param TObject|stdClass $value
string | $key | |
$value |
Definition at line 134 of file MapperMap.php.
Commercetools\Base\MapperMap::toArray | ( | ) |
@psalm-return array<string, stdClass|mixed>
Implements Commercetools\Base\CMap.
Definition at line 57 of file MapperMap.php.
Commercetools\Base\MapperMap::valid | ( | ) |
|
finalprotected |
@psalm-return ?TObject
Definition at line 179 of file MapperMap.php.
Commercetools\Base\MapperMap::with | ( | string | $key, |
callable | $callable = null |
||
) |
Implements Commercetools\Base\CMap.
Definition at line 153 of file MapperMap.php.